POWER_STATE_TYPE - NtDoc

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

typedef enum _POWER_STATE_TYPE
{
    SystemPowerState = 0,
    DevicePowerState
} POWER_STATE_TYPE, *PPOWER_STATE_TYPE;

#endif

View code on GitHub
// ntpoapi.h

typedef enum _POWER_STATE_TYPE {
  SystemPowerState,
  DevicePowerState
} POWER_STATE_TYPE, *PPOWER_STATE_TYPE;

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

typedef enum _POWER_STATE_TYPE {
  SystemPowerState,
  DevicePowerState
} POWER_STATE_TYPE, *PPOWER_STATE_TYPE;

View the official Windows Driver Kit DDI reference

NtDoc

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

Windows Driver Kit DDI reference (ne-ntpoapi-_power_state_type)

_POWER_STATE_TYPE enumeration (ntpoapi.h)

Description

The POWER_STATE_TYPE enumeration type indicates that a power state value is a system power state or a device power state.

Constants

SystemPowerState

Indicates a SYSTEM_POWER_STATE value.

DevicePowerState

Indicates a DEVICE_POWER_STATE value.

Remarks

The POWER_STATE_TYPE enumeration type is used in conjunction with a value of type POWER_STATE to indicate that the power state value is a system power state value or a device power state value. For an example, see PoSetPowerState.

See also

DEVICE_POWER_STATE

POWER_STATE

PoSetPowerState

SYSTEM_POWER_STATE


Windows Driver Kit DDI reference (ne-wdm-_power_state_type)

_POWER_STATE_TYPE enumeration (wdm.h)

Description

The POWER_STATE_TYPE enumeration type indicates that a power state value is a system power state or a device power state.

Constants

SystemPowerState

Indicates a SYSTEM_POWER_STATE value.

DevicePowerState

Indicates a DEVICE_POWER_STATE value.

Remarks

The POWER_STATE_TYPE enumeration type is used in conjunction with a value of type POWER_STATE to indicate that the power state value is a system power state value or a device power state value. For an example, see PoSetPowerState.

See also

DEVICE_POWER_STATE

POWER_STATE

PoSetPowerState

SYSTEM_POWER_STATE