_POWER_STATE structure

The POWER_STATE union specifies a system power state value or a device power state value.

Syntax

typedef struct _POWER_STATE {
  SYSTEM_POWER_STATE SystemState;
  DEVICE_POWER_STATE DeviceState;
} POWER_STATE, *PPOWER_STATE;

Members

SystemState

A system power state value of type SYSTEM_POWER_STATE.

DeviceState

A device power state value of type DEVICE_POWER_STATE.

Remarks

The POWER_STATE union is used in conjunction with the POWER_STATE_TYPE enumeration type to specify a system power state value or a device power state value. This union is also used in cases where the power state type is implicitly determined by the context in which it is used. For example, see PoRequestPowerIrp and PoSetPowerState.

For more information about power management, see Introduction to Power Management.

Requirements

   
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h, Ntpoapi.h)

See Also

DEVICE_POWER_STATE

POWER_STATE_TYPE

PoRequestPowerIrp

PoSetPowerState

SYSTEM_POWER_STATE