Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8926515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:59:24+00:00 2026-06-15T07:59:24+00:00

In my application (C#, .Net CE 3.5, WM 6.5), I have a thread that

  • 0

In my application (C#, .Net CE 3.5, WM 6.5), I have a thread that do sync with a web service. I want thread keep running if device goes to idle mode. So I use some Windows CE API, to run my thread in unattended mode and keep WiFi on during this process. (API from here). This works perfectly and system goes to standby instead suspend and thread run with WiFi is on. But 1 minute after standby, device goes to Suspend mode and execution stops.

Win32.CoreDLL.PowerPolicyNotify(Win32.PPNMessage.PPN_UNATTENDEDMODE, -1);
IntPtr wifiHabdle= Win32.CoreDLL.SetPowerRequirement(wifiDeviceName,  CEDEVICE_POWER_STATE.D1, DevicePowerFlags.POWER_NAME | DevicePowerFlags.POWER_FORCE, IntPtr.Zero, 0);

//Connect to web service and do jobs ...

Win32.CoreDLL.ReleasePowerRequirement(wifiHabdle);
Win32.CoreDLL.PowerPolicyNotify(Win32.PPNMessage.PPN_UNATTENDEDMODE, 0);

When I change power configuration on device and set “Turn off screen if device not used for” to 2 minutes, unattended mode become 2 minutes before going to suspend. (strange relation). How can I force device to remain in Unattended mode
as long as I call PowerPolicyNotify(Win32.PPNMessage.PPN_UNATTENDEDMODE, 0)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T07:59:25+00:00Added an answer on June 15, 2026 at 7:59 am

    AFAIK you need to use SetPowerRequirement also for your application and/or use SystemIdleTimerReset periodically: http://www.brianpeek.com/category/Windows-Mobile

    Although, in the past I did not success with SystemIdleTimerReset and instead changed the timeouts for battery powermanagement to suspend never and control the power requirements directly (request unattended mode).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my 3.5 .net web application I have a background thread that does a
I have a .NET application that I want to use as a client to
I have a .NET application running on windows. I want clicking on some page
I have a asp.net application in a web farm (3 servers). Alongside that application
I'm testing ASP.NET (.NET 4) web-application under high load and have found that under
A have ASP.NET 2.0 web application that should allow sending emails. I have a
I have a .net winform application that I want to allow users to connect
I have created an multi thread application on IIS (ASP.NET MVC), When the threading
I have .NET application that is hosted on IIS 6.1 It is impossible to
I have a WPF application (.NET 3.0, VS2008) that displays data in a tab

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.