0 out of 1 rated this helpful - Rate this topic

POWER_ACTION enumeration

Applies to: desktop apps only

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

Syntax

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

Constants

PowerActionNone

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.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

WinNT.h (include Windows.h)

See also

Power Management
Power Management Enumeration Types
POWER_ACTION_POLICY

 

 

Send comments about this topic to Microsoft

Build date: 2/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ