Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
POWER_ACTION_POLICY structure (winnt.h)
Contains information used to set the system power state.
Syntax
typedef struct {
POWER_ACTION Action;
DWORD Flags;
DWORD EventCode;
} POWER_ACTION_POLICY, *PPOWER_ACTION_POLICY;
Members
Action
The requested system power state. This member must be one of the POWER_ACTION enumeration type values.
Flags
A flag that controls how to switch the power state. This member can be one or more of the following values.
| Value | Meaning |
|---|---|
|
Forces a critical suspension. |
|
Disables all wake events. |
|
Uses the first lightest available sleep state. |
|
Requires entry of the system password upon resume from one of the system standby states. |
|
Has no effect. |
|
Has no effect. |
|
Applications can prompt the user for directions on how to prepare for suspension. Sets bit 0 in the Flags parameter passed in the lParam parameter of WM_POWERBROADCAST. |
EventCode
The level of user notification. This member can be one or more of the following values.
| Value | Meaning |
|---|---|
|
Clears a user power button press. |
|
Specifies a program to be executed. |
|
User notified using sound. |
|
User notified using the UI. |
|
Indicates that the power action is in response to a user power button press. |
|
Indicates a power action of shutdown/off. |
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
Was this page helpful?
