IOCTL_POWER_GET

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This I/O control gets the current device power state.

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
    [out] Set to a pointer to CEDEVICE_POWER_STATE. This returns the current device 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

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

Power Manager knows the device power state of all power-manageable devices. It does not generally issue an IOCTL_POWER_GET call to the device unless an application calls GetDevicePower with the POWER_FORCE flag set.

Requirements

Header pm.h
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

Power Management I/O Controls
CEDEVICE_POWER_STATE
POWER_RELATIONSHIP