SYSTEM_POWER_STATE enumeration (winnt.h)
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
PowerSystemUnspecified Value: 0 Unspecified system power state. |
PowerSystemWorking Value: 1 Specifies system power state S0. |
PowerSystemSleeping1 Value: 2 Specifies system power state S1. |
PowerSystemSleeping2 Value: 3 Specifies system power state S2. |
PowerSystemSleeping3 Value: 4 Specifies system power state S3. |
PowerSystemHibernate Value: 5 Specifies system power state S4 (HIBERNATE). |
PowerSystemShutdown Value: 6 Specifies system power state S5 (OFF). |
PowerSystemMaximum Value: 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) |