POWER_STATE - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTPOAPI_H

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

#endif

View code on GitHub
// ntpoapi.h

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

View the official Windows Driver Kit DDI reference
// wdm.h

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

View the official Windows Driver Kit DDI reference

NtDoc

This union is documented in Windows Driver Kit here and here.

Windows Driver Kit DDI reference (ns-ntpoapi-_power_state)

_POWER_STATE structure (ntpoapi.h)

Description

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

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.

See also

DEVICE_POWER_STATE

POWER_STATE_TYPE

PoRequestPowerIrp

PoSetPowerState

SYSTEM_POWER_STATE


Windows Driver Kit DDI reference (ns-wdm-_power_state)

_POWER_STATE structure (wdm.h)

Description

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

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.

See also

DEVICE_POWER_STATE

POWER_STATE_TYPE

PoRequestPowerIrp

PoSetPowerState

SYSTEM_POWER_STATE