Re: why this API (SetSystemPowerState) can not change the system power state??
- From: "Michel Verhagen (eMVP)" <michel@xxxxxxxxxx>
- Date: Thu, 17 Apr 2008 00:36:10 -0700
Because the power manager decides what is best for the system, not some random application. Note that *you* control the behavior of the power manager!
Can you tell us *why* you want to move the system out of useridle into on?
In your case you should modify the PM pdd and implement a scheme that makes sense for your system instead of trying to work against the PM with your appplication. Take a look at \WINCE600\PUBLIC\COMMON\OAK\DRIVERS\PM\PDD\DEFAULT to gain a better understanding of how the PM works. The code is very well documented and quite easy to understand.
Good luck,
Michel Verhagen, eMVP
Check out my blog: http://GuruCE.com/blog
GuruCE Ltd.
Microsoft Embedded Partner
http://GuruCE.com
Consultancy, training and development services.
Hzh wrote:
Does anyone can tell me why?.
My system power state is in useridle mode, when I got an event in my driver under CE 5.0, I want to change the system power state from useridle to on, so I call this API, SetSystemPowerState(L"on",0,0); but it does not work, the system power state still keep in useridle mode, and I could not get the PBT_TRANSITION notification either. It seems that my system could not broadcast the PBT_TRANSITION notification.
Anyone can give me some advice? Thank you all very much.
Ricky
- Follow-Ups:
- References:
- Prev by Date: Re: Disabling the FTP Server
- Next by Date: RE: why this API (SetSystemPowerState) can not change the system power
- Previous by thread: why this API (SetSystemPowerState) can not change the system power state??
- Next by thread: Re: why this API (SetSystemPowerState) can not change the system power state??
- Index(es):
Relevant Pages
|
|