Application Interface
The Power Manager provides several functions to allow applications to affect system and device power management. Of the APIs in this list, only GetSystemPowerState, SetPowerRequirement and ReleasePowerRequirement are intended for use by generic applications. For example, applications may use SetSystemPowerState to suspend the system, but the Power Manager may restrict the system power states that can be entered as a result of application requests. The other APIs are intended for use by OEM applications, such as control panel utilities. The following table shows the device power management functions.
Function | Description |
---|---|
GetSystemPowerState | Returns the name of the current system power state. |
SetSystemPowerState | Requests that the Power Manager change the current system power state. |
SetPowerRequirement | Requests that the Power Manager maintain a given device's power state at a minimum level. |
ReleasePowerRequirement | Informs the Power Manager that it is no longer necessary to maintain a device's minimum power state as described in a previous call to SetPowerRequirement. |
GetDevicePower | Returns a given device's current power state. |
SetDevicePower | Request that the Power Manager change a given device's power state. |
See Also
System Power State Setting | Power Requirements on Devices
Last updated on Tuesday, May 18, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.