Click to Rate and Give Feedback
MSDN
MSDN Library
Power Management
 IOCTL_POWER_SET
Collapse All/Expand All Collapse All
IOCTL_POWER_SET
Windows Mobile SupportedWindows Embedded CE Supported
8/28/2008

This I/O control requests a change from one device power state to another.

pBufIn

[in] Set to a pointer to POWER_RELATIONSHIP. This defines the target device for parent and bus drivers. Otherwise, set to NULL.

dwLenIn

[in] Size of the POWER_RELATIONSHIP structure.

pBufOut

[in] Set to a pointer to CEDEVICE_POWER_STATE. This is the device state in which to put the device.

[out] Optional. Set to an adjusted power state if the driver does not support the requested power state.

dwLenOut

[out] Size of the CEDEVICE_POWER_STATE parameter.

pdwActualOut

[out] Number of bytes passed back in the pBufOut buffer.

TRUE indicates success. FALSE indicates failure.

If the driver does not support the proposed device power state, it should write its adjusted device power state into pBufOut.

Power Manager sends this I/O control only to drivers that support the power management I/O controls.

All drivers that account for power must handle this I/O control.

The backlight driver must have a thread that waits for display interfaces.

Your application should not call this control directly to set the device power. Instead, it should use the SetDevicePower function which goes through the Power Manager.

The backlight driver model device driver (MDD) does this already, so OEMs should either use the MDD in backlight drivers, or refer to it for implementation details.

Headerpm.h
Windows Embedded CEWindows CE .NET 4.0 and later
Windows MobileWindows Mobile Version 5.0 and later
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker