SYSTEM_POWER_STATE enumeration
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
-
Unspecified system power state.
- PowerSystemWorking
-
Specifies system power state S0.
- PowerSystemSleeping1
-
Specifies system power state S1.
- PowerSystemSleeping2
-
Specifies system power state S2.
- PowerSystemSleeping3
-
Specifies system power state S3.
- PowerSystemHibernate
-
Specifies system power state S4 (HIBERNATE).
- PowerSystemShutdown
-
Specifies system power state S5 (OFF).
- PowerSystemMaximum
-
Specifies the maximum enumeration value.
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
See also
- Power Management Enumeration Types
- ADMINISTRATOR_POWER_POLICY
- GLOBAL_MACHINE_POWER_POLICY
- MACHINE_POWER_POLICY
- SYSTEM_POWER_CAPABILITIES
- SYSTEM_POWER_POLICY
- USER_POWER_POLICY
Show: