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.
Defines values that are used to specify system power states.
Syntax
typedef enum _SYSTEM_POWER_STATE {
PowerSystemUnspecified = 0,
PowerSystemWorking = 1,
PowerSystemSleeping1 = 2,
PowerSystemSleeping2 = 3,
PowerSystemSleeping3 = 4,
PowerSystemHibernate = 5,
PowerSystemShutdown = 6,
PowerSystemMaximum = 7
} SYSTEM_POWER_STATE, *PSYSTEM_POWER_STATE;
Constants
PowerSystemUnspecifiedValue: 0 Unspecified system power state. |
PowerSystemWorkingValue: 1 Specifies system power state S0. |
PowerSystemSleeping1Value: 2 Specifies system power state S1. |
PowerSystemSleeping2Value: 3 Specifies system power state S2. |
PowerSystemSleeping3Value: 4 Specifies system power state S3. |
PowerSystemHibernateValue: 5 Specifies system power state S4 (HIBERNATE). |
PowerSystemShutdownValue: 6 Specifies system power state S5 (OFF). |
PowerSystemMaximumValue: 7 Specifies the maximum enumeration value. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows XP [desktop apps only] |
| Minimum supported server | Windows Server 2003 [desktop apps only] |
| Header | winnt.h (include Windows.h) |