IOCTL_POWER_SET (Windows Embedded CE 6.0)

1/6/2010

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

Parameters

  • 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 indicates success. FALSE indicates failure.

Remarks

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.

Requirements

Header pm.h
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Power Management I/O Controls
CEDEVICE_POWER_STATE
POWER_RELATIONSHIP