ReactOS  0.4.14-dev-608-gd495a4f
powrprof.h
Go to the documentation of this file.
1 #ifndef _POWRPROF_H
2 #define _POWRPROF_H
3 
4 #ifndef __WINE_WINTERNL_H
5 /* FIXME: Include this, so NTSTATUS gets defined.
6  Not very clean, but I can't get the hacH^H^H^override used
7  by official PSDK to work. */
8 #include <ntsecapi.h>
9 #endif
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 #define EnableMultiBatteryDisplay 2
16 #define EnablePasswordLogon 4
17 #define EnableSysTrayBatteryMeter 1
18 #define EnableWakeOnRing 8
19 #define EnableVideoDimDisplay 16
20 #define NEWSCHEME (UINT)-1
21 
22 #ifndef RC_INVOKED
23 
41 typedef struct _GLOBAL_POWER_POLICY{
45 typedef struct _MACHINE_POWER_POLICY{
57  UCHAR pad1[2];
66 typedef struct _USER_POWER_POLICY{
90 typedef struct _POWER_POLICY{
117 
118 #endif /* RC_INVOKED */
119 
120 #ifdef __cplusplus
121 }
122 #endif
123 
124 #endif /* _POWRPROF_H */
UCHAR ThrottlePolicyAc
Definition: powrprof.h:74
struct _MACHINE_POWER_POLICY * PMACHINE_POWER_POLICY
BOOLEAN WINAPI ValidatePowerPolicies(PGLOBAL_POWER_POLICY, PPOWER_POLICY)
Definition: powrprof.c:851
BOOLEAN(CALLBACK * PFNNTINITIATEPWRACTION)(POWER_ACTION, SYSTEM_POWER_STATE, ULONG, BOOLEAN)
Definition: powrprof.h:95
POWER_ACTION_POLICY SleepButtonDc
Definition: powrprof.h:35
struct _POWER_POLICY * PPOWER_POLICY
SYSTEM_POWER_STATE LidOpenWakeDc
Definition: powrprof.h:27
SYSTEM_POWER_STATE MaxSleepAc
Definition: powrprof.h:76
GLOBAL_USER_POWER_POLICY user
Definition: powrprof.h:42
BOOLEAN WINAPI IsPwrSuspendAllowed(VOID)
Definition: powrprof.c:488
struct _GLOBAL_MACHINE_POWER_POLICY * PGLOBAL_MACHINE_POWER_POLICY
BOOLEAN WINAPI IsPwrHibernateAllowed(VOID)
Definition: powrprof.c:450
LONG NTSTATUS
Definition: precomp.h:26
#define CALLBACK
Definition: compat.h:27
POWER_ACTION_POLICY PowerButtonDc
Definition: powrprof.h:33
POWER_ACTION_POLICY IdleDc
Definition: powrprof.h:69
BOOLEAN WINAPI SetActivePwrScheme(UINT, PGLOBAL_POWER_POLICY, PPOWER_POLICY)
Definition: powrprof.c:642
BOOLEAN WINAPI IsAdminOverrideActive(PADMINISTRATOR_POWER_POLICY)
Definition: powrprof.c:443
BOOLEAN OptimizeForPowerDc
Definition: powrprof.h:84
#define DWORD
Definition: nt_native.h:44
struct _USER_POWER_POLICY * PUSER_POWER_POLICY
enum _SYSTEM_POWER_STATE SYSTEM_POWER_STATE
BOOLEAN WINAPI WritePwrScheme(PUINT, LPWSTR, LPWSTR, PPOWER_POLICY)
Definition: powrprof.c:766
NTSTATUS WINAPI CallNtPowerInformation(POWER_INFORMATION_LEVEL, PVOID, ULONG, PVOID, ULONG)
Definition: powrprof.c:59
struct _MACHINE_POWER_POLICY MACHINE_POWER_POLICY
GLOBAL_MACHINE_POWER_POLICY mach
Definition: powrprof.h:43
UCHAR ThrottlePolicyDc
Definition: powrprof.h:75
SYSTEM_POWER_STATE MaxSleepDc
Definition: powrprof.h:77
BOOLEAN WINAPI WriteGlobalPwrPolicy(PGLOBAL_POWER_POLICY)
Definition: powrprof.c:690
ULONG SpindownTimeoutDc
Definition: powrprof.h:82
ULONG SpindownTimeoutAc
Definition: powrprof.h:81
struct _POWER_POLICY POWER_POLICY
BOOLEAN WINAPI ReadProcessorPwrScheme(UINT, PMACHINE_PROCESSOR_POWER_POLICY)
Definition: powrprof.c:584
unsigned char BOOLEAN
BOOLEAN WINAPI IsPwrShutdownAllowed(VOID)
Definition: powrprof.c:469
UCHAR ForcedThrottleDc
Definition: powrprof.h:88
BOOLEAN WINAPI GetPwrCapabilities(PSYSTEM_POWER_CAPABILITIES)
Definition: powrprof.c:358
LONG_PTR LPARAM
Definition: windef.h:208
POWER_ACTION_POLICY IdleAc
Definition: powrprof.h:68
MACHINE_POWER_POLICY mach
Definition: powrprof.h:92
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
PROCESSOR_POWER_POLICY ProcessorPolicyAc
Definition: powrprof.h:63
UCHAR ForcedThrottleAc
Definition: powrprof.h:87
BOOLEAN(CALLBACK * PWRSCHEMESENUMPROC)(UINT, DWORD, LPWSTR, DWORD, LPWSTR, PPOWER_POLICY, LPARAM)
Definition: powrprof.h:94
BOOLEAN WINAPI ReadPwrScheme(UINT, PPOWER_POLICY)
Definition: powrprof.c:610
struct _GLOBAL_USER_POWER_POLICY GLOBAL_USER_POWER_POLICY
POWER_ACTION_POLICY LidCloseAc
Definition: powrprof.h:36
USER_POWER_POLICY user
Definition: powrprof.h:91
BOOLEAN OptimizeForPowerAc
Definition: powrprof.h:83
ULONG VideoTimeoutAc
Definition: powrprof.h:79
#define WINAPI
Definition: msvc.h:6
enum _POWER_INFORMATION_LEVEL POWER_INFORMATION_LEVEL
BOOLEAN WINAPI WriteProcessorPwrScheme(UINT, PMACHINE_PROCESSOR_POWER_POLICY)
Definition: powrprof.c:732
BOOLEAN WINAPI DeletePwrScheme(UINT)
Definition: powrprof.c:99
POWER_ACTION_POLICY LidCloseDc
Definition: powrprof.h:37
unsigned char UCHAR
Definition: xmlstorage.h:181
BOOLEAN WINAPI ReadGlobalPwrPolicy(PGLOBAL_POWER_POLICY)
Definition: powrprof.c:521
SYSTEM_POWER_STATE ReducedLatencySleepAc
Definition: powrprof.h:49
POWER_ACTION
Definition: ntpoapi.h:122
BOOLEAN WINAPI GetActivePwrScheme(PUINT)
Definition: powrprof.c:285
struct _GLOBAL_USER_POWER_POLICY * PGLOBAL_USER_POWER_POLICY
ULONG VideoTimeoutDc
Definition: powrprof.h:80
UCHAR FanThrottleToleranceAc
Definition: powrprof.h:85
UCHAR IdleSensitivityAc
Definition: powrprof.h:72
BOOLEAN WINAPI EnumPwrSchemes(PWRSCHEMESENUMPROC, LPARAM)
Definition: powrprof.c:219
SYSTEM_POWER_STATE MinSleepDc
Definition: powrprof.h:48
#define NUM_DISCHARGE_POLICIES
Definition: ntpoapi.h:432
struct _GLOBAL_POWER_POLICY * PGLOBAL_POWER_POLICY
BOOLEAN WINAPI CanUserWritePwrScheme(VOID)
Definition: powrprof.c:79
UCHAR IdleSensitivityDc
Definition: powrprof.h:73
SYSTEM_POWER_LEVEL DischargePolicy[NUM_DISCHARGE_POLICIES]
Definition: powrprof.h:38
struct _GLOBAL_POWER_POLICY GLOBAL_POWER_POLICY
PROCESSOR_POWER_POLICY ProcessorPolicyDc
Definition: powrprof.h:64
SYSTEM_POWER_STATE MinSleepAc
Definition: powrprof.h:47
POWER_ACTION_POLICY OverThrottledDc
Definition: powrprof.h:59
BOOLEAN WINAPI GetCurrentPowerPolicies(PGLOBAL_POWER_POLICY, PPOWER_POLICY)
Definition: powrprof.c:321
unsigned int UINT
Definition: ndis.h:50
struct _MACHINE_PROCESSOR_POWER_POLICY MACHINE_PROCESSOR_POWER_POLICY
BOOLEAN WINAPI GetPwrDiskSpindownRange(PUINT, PUINT)
Definition: powrprof.c:381
SYSTEM_POWER_STATE ReducedLatencySleepDc
Definition: powrprof.h:50
#define BOOLEAN
Definition: pedump.c:73
unsigned int ULONG
Definition: retypes.h:1
struct _GLOBAL_MACHINE_POWER_POLICY GLOBAL_MACHINE_POWER_POLICY
POWER_ACTION_POLICY PowerButtonAc
Definition: powrprof.h:32
ULONG IdleTimeoutDc
Definition: powrprof.h:71
WCHAR * LPWSTR
Definition: xmlstorage.h:184
POWER_ACTION_POLICY OverThrottledAc
Definition: powrprof.h:58
UCHAR FanThrottleToleranceDc
Definition: powrprof.h:86
ULONG IdleTimeoutAc
Definition: powrprof.h:70
SYSTEM_POWER_STATE LidOpenWakeAc
Definition: powrprof.h:26
struct _USER_POWER_POLICY USER_POWER_POLICY
POWER_ACTION_POLICY SleepButtonAc
Definition: powrprof.h:34
struct _MACHINE_PROCESSOR_POWER_POLICY * PMACHINE_PROCESSOR_POWER_POLICY
unsigned int * PUINT
Definition: ndis.h:50
BOOLEAN WINAPI SetSuspendState(BOOLEAN, BOOLEAN, BOOLEAN)
Definition: powrprof.c:681