#ifndef _NTPOAPI_H
typedef union _POWER_STATE
{
SYSTEM_POWER_STATE SystemState;
DEVICE_POWER_STATE DeviceState;
} POWER_STATE, *PPOWER_STATE;
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
The POWER_STATE union specifies a system power state value or a device power state value.
SystemState
A system power state value of type SYSTEM_POWER_STATE.
DeviceState
A device power state value of type DEVICE_POWER_STATE.
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.
The POWER_STATE union specifies a system power state value or a device power state value.
SystemState
A system power state value of type SYSTEM_POWER_STATE.
DeviceState
A device power state value of type DEVICE_POWER_STATE.
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.