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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for