Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

Power Manager provides several functions to allow applications to affect system and device power management. Of the functions in this list, only GetSystemPowerState, SetPowerRequirement, and ReleasePowerRequirementare intended for use by generic applications. For example, applications can use SetSystemPowerStateto suspend the system, but Power Manager may restrict the system power states that can be entered as a result of application requests. The other functions 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 Power Manager change the current system power state.

SetPowerRequirement

Requests that Power Manager maintain the power state of a device at a minimum level.

ReleasePowerRequirement

Informs Power Manager that it no longer needs to maintain the device minimum power state set in a previous call to SetPowerRequirement.

GetDevicePower

Returns the current power state of a device.

SetDevicePower

Requests that Power Manager change the power state of a device.

See Also