Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

POWER_ACTION enumeration (winnt.h)

Defines values that are used to specify system power action types.

Syntax

typedef enum {
 PowerActionNone = 0,
 PowerActionReserved,
 PowerActionSleep,
 PowerActionHibernate,
 PowerActionShutdown,
 PowerActionShutdownReset,
 PowerActionShutdownOff,
 PowerActionWarmEject,
 PowerActionDisplayOff
} POWER_ACTION, *PPOWER_ACTION;

Constants

 
PowerActionNone
Value: 0
No system power action.
PowerActionReserved
Reserved; do not use.
PowerActionSleep
Sleep.
PowerActionHibernate
Hibernate.
PowerActionShutdown
Shutdown.
PowerActionShutdownReset
Shutdown and reset.
PowerActionShutdownOff
Shutdown and power off.
PowerActionWarmEject
Warm eject.
PowerActionDisplayOff

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)

See also

POWER_ACTION_POLICY

Power Management

Power Management Enumeration Types


Feedback

Was this page helpful?

Additional resources