Setting the system's power state.

I’m trying to find a way to set the system power state from kernel mode.
I’ve looked at the PoSetPowerState method, but i’ve seen it only supposed to be used to set the power state of a specific driver.
I’ve googled a few “setting system power state” phrases but didn’t really find something interesting.
I guess the solution is simple, and i’m just missing something.
Anyone?
Thanks.

There is no api in kernel mode to change the system power state, only user mode APIs exist. You need to have a user mode helper service initiate a transition

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@giant-steps.com
Sent: Sunday, September 21, 2008 6:47 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Setting the system’s power state.

I’m trying to find a way to set the system power state from kernel mode.
I’ve looked at the PoSetPowerState method, but i’ve seen it only supposed to be used to set the power state of a specific driver.
I’ve googled a few “setting system power state” phrases but didn’t really find something interesting.
I guess the solution is simple, and i’m just missing something.
Anyone?
Thanks.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer