IOCTL_POWER_SET (Windows CE 5.0)
This IOCTL requests a change from one device power state to another.
[in] Set to a pointer to POWER_RELATIONSHIP. This defines the target device for parent and bus drivers. Otherwise, set to NULL.
[in] Size of the POWER_RELATIONSHIP structure.
[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.
[out] Size of the CEDEVICE_POWER_STATE parameter.
[out] Number of bytes passed back in the pBufOut buffer.
TRUE if successful, FALSE otherwise.
If the driver does not support the proposed device power state, then it should write its adjusted device power state into pBufOut.
The Power Manager will only send this IOCTL to drivers that support the power management IOCTLs.
All drivers that account for power must handle this IOCTL.
OS Versions: Windows CE .NET 4.0 and later.
Send Feedback on this topic to the authors