mirror of
https://github.com/reactos/reactos.git
synced 2024-07-11 07:05:12 +00:00
Add some types and contants to ntpoapi.h
svn path=/branches/header-work/; revision=46008
This commit is contained in:
parent
414f53a790
commit
dfe13ea582
|
@ -270,6 +270,39 @@ typedef struct _PROCESSOR_POWER_INFORMATION {
|
|||
ULONG CurrentIdleState;
|
||||
} PROCESSOR_POWER_INFORMATION, *PPROCESSOR_POWER_INFORMATION;
|
||||
|
||||
typedef struct _POWER_ACTION_POLICY {
|
||||
POWER_ACTION Action;
|
||||
ULONG Flags;
|
||||
ULONG EventCode;
|
||||
} POWER_ACTION_POLICY, *PPOWER_ACTION_POLICY;
|
||||
|
||||
/* POWER_ACTION_POLICY.Flags constants */
|
||||
#define POWER_ACTION_QUERY_ALLOWED 0x00000001
|
||||
#define POWER_ACTION_UI_ALLOWED 0x00000002
|
||||
#define POWER_ACTION_OVERRIDE_APPS 0x00000004
|
||||
#define POWER_ACTION_LIGHTEST_FIRST 0x10000000
|
||||
#define POWER_ACTION_LOCK_CONSOLE 0x20000000
|
||||
#define POWER_ACTION_DISABLE_WAKES 0x40000000
|
||||
#define POWER_ACTION_CRITICAL 0x80000000
|
||||
|
||||
/* POWER_ACTION_POLICY.EventCode constants */
|
||||
#define POWER_LEVEL_USER_NOTIFY_TEXT 0x00000001
|
||||
#define POWER_LEVEL_USER_NOTIFY_SOUND 0x00000002
|
||||
#define POWER_LEVEL_USER_NOTIFY_EXEC 0x00000004
|
||||
#define POWER_USER_NOTIFY_BUTTON 0x00000008
|
||||
#define POWER_USER_NOTIFY_SHUTDOWN 0x00000010
|
||||
#define POWER_FORCE_TRIGGER_RESET 0x80000000
|
||||
|
||||
#define DISCHARGE_POLICY_CRITICAL 0
|
||||
#define DISCHARGE_POLICY_LOW 1
|
||||
#define NUM_DISCHARGE_POLICIES 4
|
||||
|
||||
#define PO_THROTTLE_NONE 0
|
||||
#define PO_THROTTLE_CONSTANT 1
|
||||
#define PO_THROTTLE_DEGRADE 2
|
||||
#define PO_THROTTLE_ADAPTIVE 3
|
||||
#define PO_THROTTLE_MAXIMUM 4
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue