Share via

IOCTL_POWER_SET (Windows CE 5.0)

Send Feedback

This IOCTL 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.

Return Values

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.
Header: Pm.h.

See Also


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.