Re: why this API (SetSystemPowerState) can not change the system power state??
- From: "Michel Verhagen (eMVP)" <michel@xxxxxxxxxx>
- Date: Wed, 23 Apr 2008 11:21:29 +1200
I could explain you but that would take a lot of time. As I said earlier, take a look at the PM source code (\WINCE500\PUBLIC\COMMON\OAK\DRIVERS\PM) and read the code.
In short: The powermanager manages the entire system and knows about all the different components (like drivers, applications, running threads, user activity, system activity, etc). You, as an application (or driver), can not know what is going on on the entire system so how can you be the one making a decision for everyone else?
Learn the PM API and architecture. Documentation is very good on this.
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:
Hi, Michel.
Thank you.
According to what you said, it works. I can change the system power state from useridle to on. Thank you very much.
But I still don't understand why this API, SetSystemPowerState, does not work??? Could you tell me why?
Thank you again.
Best Regards
Ricky
- Follow-Ups:
- References:
- why this API (SetSystemPowerState) can not change the system power state??
- From: Hzh
- Re: why this API (SetSystemPowerState) can not change the system power state??
- From: Michel Verhagen (eMVP)
- Re: why this API (SetSystemPowerState) can not change the system power state??
- From: Hzh
- Re: why this API (SetSystemPowerState) can not change the system power state??
- From: Michel Verhagen (eMVP)
- Re: why this API (SetSystemPowerState) can not change the system power state??
- From: Hzh
- why this API (SetSystemPowerState) can not change the system power state??
- Prev by Date: Re: User interface and services.exe
- Next by Date: Re: why this API (SetSystemPowerState) can not change the system power state??
- Previous by thread: Re: 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
|
|