SYSTEM_POWER_STATE Enumeration

Defines values that are used to specify system power states.

Syntax

typedef enum _SYSTEM_POWER_STATE {
  PowerSystemUnspecified,
  PowerSystemWorking,
  PowerSystemSleeping1,
  PowerSystemSleeping2,
  PowerSystemSleeping3,
  PowerSystemHibernate,
  PowerSystemShutdown,
  PowerSystemMaximum
} 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 winnt.h (include Windows.h)

See Also

ADMINISTRATOR_POWER_POLICY

GLOBAL_MACHINE_POWER_POLICY

MACHINE_POWER_POLICY

Power Management Enumeration Types

SYSTEM_POWER_CAPABILITIES

SYSTEM_POWER_POLICY

USER_POWER_POLICY