#ifndef _NTPOAPI_H
typedef enum _POWER_STATE_TYPE
{
SystemPowerState = 0,
DevicePowerState
} POWER_STATE_TYPE, *PPOWER_STATE_TYPE;
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
The POWER_STATE_TYPE enumeration type indicates that a power state value is a system power state or a device power state.
SystemPowerState
Indicates a SYSTEM_POWER_STATE value.
DevicePowerState
Indicates a DEVICE_POWER_STATE value.
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.
The POWER_STATE_TYPE enumeration type indicates that a power state value is a system power state or a device power state.
SystemPowerState
Indicates a SYSTEM_POWER_STATE value.
DevicePowerState
Indicates a DEVICE_POWER_STATE value.
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.