Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The POWER_ACTION enumeration identifies the system power actions that can occur on a computer.
Syntax
typedef enum {
PowerActionNone,
PowerActionReserved,
PowerActionSleep,
PowerActionHibernate,
PowerActionShutdown,
PowerActionShutdownReset,
PowerActionShutdownOff,
PowerActionWarmEject,
PowerActionDisplayOff
} POWER_ACTION, *PPOWER_ACTION;
Constants
PowerActionNoneNo power action is taking place. |
PowerActionReservedReserved for system use. |
PowerActionSleepThe computer is entering a system sleeping (S1, S2, or S3) state. |
PowerActionHibernateThe computer is entering its hibernation (S4) state. |
PowerActionShutdownThe computer is entering its shutdown (S5) state. After all devices have entered their off (D3) state, the computer remains powered on until an administrator presses the power button. |
PowerActionShutdownResetThe computer is entering its shutdown (S5) state. After all devices have entered their off (D3) state, the computer automatically powers off and then immediately restarts and returns to its working (S0) state. |
PowerActionShutdownOffThe computer is entering its shutdown (S5) state. After all devices have entered their off (D3) state, the computer automatically powers off. |
PowerActionWarmEjectThe computer is being ejected from an ACPI-compatible dock device. Typically, the computer's power state does not change. |
PowerActionDisplayOff |
Requirements
| Requirement | Value |
|---|---|
| Header | wdm.h (include Wdm.h) |