ReactOS 0.4.15-dev-7788-g1ad9096
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
12extern "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
41typedef struct _GLOBAL_POWER_POLICY{
45typedef struct _MACHINE_POWER_POLICY{
66typedef struct _USER_POWER_POLICY{
90typedef struct _POWER_POLICY{
117
118#endif /* RC_INVOKED */
119
120#ifdef __cplusplus
121}
122#endif
123
124#endif /* _POWRPROF_H */
unsigned char BOOLEAN
LONG NTSTATUS
Definition: precomp.h:26
#define CALLBACK
Definition: compat.h:35
unsigned int * PUINT
Definition: ndis.h:50
unsigned int UINT
Definition: ndis.h:50
#define DWORD
Definition: nt_native.h:44
POWER_ACTION
Definition: ntpoapi.h:122
enum _POWER_INFORMATION_LEVEL POWER_INFORMATION_LEVEL
enum _SYSTEM_POWER_STATE SYSTEM_POWER_STATE
#define NUM_DISCHARGE_POLICIES
Definition: ntpoapi.h:432
#define BOOLEAN
Definition: pedump.c:73
struct _MACHINE_POWER_POLICY * PMACHINE_POWER_POLICY
struct _GLOBAL_MACHINE_POWER_POLICY GLOBAL_MACHINE_POWER_POLICY
BOOLEAN WINAPI ReadPwrScheme(UINT, PPOWER_POLICY)
Definition: powrprof.c:610
struct _GLOBAL_POWER_POLICY * PGLOBAL_POWER_POLICY
BOOLEAN WINAPI DeletePwrScheme(UINT)
Definition: powrprof.c:99
BOOLEAN WINAPI IsPwrHibernateAllowed(VOID)
Definition: powrprof.c:450
BOOLEAN(CALLBACK * PFNNTINITIATEPWRACTION)(POWER_ACTION, SYSTEM_POWER_STATE, ULONG, BOOLEAN)
Definition: powrprof.h:95
BOOLEAN WINAPI EnumPwrSchemes(PWRSCHEMESENUMPROC, LPARAM)
Definition: powrprof.c:219
BOOLEAN WINAPI ReadGlobalPwrPolicy(PGLOBAL_POWER_POLICY)
Definition: powrprof.c:521
BOOLEAN WINAPI IsPwrShutdownAllowed(VOID)
Definition: powrprof.c:469
struct _GLOBAL_USER_POWER_POLICY * PGLOBAL_USER_POWER_POLICY
BOOLEAN WINAPI WriteGlobalPwrPolicy(PGLOBAL_POWER_POLICY)
Definition: powrprof.c:690
BOOLEAN WINAPI GetPwrDiskSpindownRange(PUINT, PUINT)
Definition: powrprof.c:381
struct _MACHINE_PROCESSOR_POWER_POLICY * PMACHINE_PROCESSOR_POWER_POLICY
BOOLEAN WINAPI WriteProcessorPwrScheme(UINT, PMACHINE_PROCESSOR_POWER_POLICY)
Definition: powrprof.c:732
BOOLEAN WINAPI SetSuspendState(BOOLEAN, BOOLEAN, BOOLEAN)
Definition: powrprof.c:681
struct _USER_POWER_POLICY USER_POWER_POLICY
BOOLEAN(CALLBACK * PWRSCHEMESENUMPROC)(UINT, DWORD, LPWSTR, DWORD, LPWSTR, PPOWER_POLICY, LPARAM)
Definition: powrprof.h:94
BOOLEAN WINAPI GetPwrCapabilities(PSYSTEM_POWER_CAPABILITIES)
Definition: powrprof.c:358
BOOLEAN WINAPI GetCurrentPowerPolicies(PGLOBAL_POWER_POLICY, PPOWER_POLICY)
Definition: powrprof.c:321
struct _GLOBAL_POWER_POLICY GLOBAL_POWER_POLICY
struct _GLOBAL_MACHINE_POWER_POLICY * PGLOBAL_MACHINE_POWER_POLICY
BOOLEAN WINAPI CanUserWritePwrScheme(VOID)
Definition: powrprof.c:79
BOOLEAN WINAPI ValidatePowerPolicies(PGLOBAL_POWER_POLICY, PPOWER_POLICY)
Definition: powrprof.c:1017
NTSTATUS WINAPI CallNtPowerInformation(POWER_INFORMATION_LEVEL, PVOID, ULONG, PVOID, ULONG)
Definition: powrprof.c:59
struct _GLOBAL_USER_POWER_POLICY GLOBAL_USER_POWER_POLICY
BOOLEAN WINAPI WritePwrScheme(PUINT, LPWSTR, LPWSTR, PPOWER_POLICY)
Definition: powrprof.c:766
struct _USER_POWER_POLICY * PUSER_POWER_POLICY
BOOLEAN WINAPI IsAdminOverrideActive(PADMINISTRATOR_POWER_POLICY)
Definition: powrprof.c:443
BOOLEAN WINAPI GetActivePwrScheme(PUINT)
Definition: powrprof.c:285
BOOLEAN WINAPI SetActivePwrScheme(UINT, PGLOBAL_POWER_POLICY, PPOWER_POLICY)
Definition: powrprof.c:642
struct _MACHINE_POWER_POLICY MACHINE_POWER_POLICY
BOOLEAN WINAPI IsPwrSuspendAllowed(VOID)
Definition: powrprof.c:488
struct _POWER_POLICY * PPOWER_POLICY
BOOLEAN WINAPI ReadProcessorPwrScheme(UINT, PMACHINE_PROCESSOR_POWER_POLICY)
Definition: powrprof.c:584
struct _MACHINE_PROCESSOR_POWER_POLICY MACHINE_PROCESSOR_POWER_POLICY
struct _POWER_POLICY POWER_POLICY
SYSTEM_POWER_STATE LidOpenWakeDc
Definition: powrprof.h:27
SYSTEM_POWER_STATE LidOpenWakeAc
Definition: powrprof.h:26
GLOBAL_USER_POWER_POLICY user
Definition: powrprof.h:42
GLOBAL_MACHINE_POWER_POLICY mach
Definition: powrprof.h:43
SYSTEM_POWER_LEVEL DischargePolicy[NUM_DISCHARGE_POLICIES]
Definition: powrprof.h:38
POWER_ACTION_POLICY PowerButtonDc
Definition: powrprof.h:33
POWER_ACTION_POLICY LidCloseDc
Definition: powrprof.h:37
POWER_ACTION_POLICY SleepButtonDc
Definition: powrprof.h:35
POWER_ACTION_POLICY PowerButtonAc
Definition: powrprof.h:32
POWER_ACTION_POLICY SleepButtonAc
Definition: powrprof.h:34
POWER_ACTION_POLICY LidCloseAc
Definition: powrprof.h:36
SYSTEM_POWER_STATE MinSleepAc
Definition: powrprof.h:47
SYSTEM_POWER_STATE ReducedLatencySleepDc
Definition: powrprof.h:50
POWER_ACTION_POLICY OverThrottledDc
Definition: powrprof.h:59
SYSTEM_POWER_STATE ReducedLatencySleepAc
Definition: powrprof.h:49
POWER_ACTION_POLICY OverThrottledAc
Definition: powrprof.h:58
SYSTEM_POWER_STATE MinSleepDc
Definition: powrprof.h:48
PROCESSOR_POWER_POLICY ProcessorPolicyDc
Definition: powrprof.h:64
PROCESSOR_POWER_POLICY ProcessorPolicyAc
Definition: powrprof.h:63
MACHINE_POWER_POLICY mach
Definition: powrprof.h:92
USER_POWER_POLICY user
Definition: powrprof.h:91
SYSTEM_POWER_STATE MaxSleepAc
Definition: powrprof.h:76
ULONG VideoTimeoutDc
Definition: powrprof.h:80
SYSTEM_POWER_STATE MaxSleepDc
Definition: powrprof.h:77
POWER_ACTION_POLICY IdleAc
Definition: powrprof.h:68
UCHAR FanThrottleToleranceDc
Definition: powrprof.h:86
UCHAR ThrottlePolicyAc
Definition: powrprof.h:74
ULONG SpindownTimeoutAc
Definition: powrprof.h:81
UCHAR FanThrottleToleranceAc
Definition: powrprof.h:85
UCHAR IdleSensitivityDc
Definition: powrprof.h:73
ULONG SpindownTimeoutDc
Definition: powrprof.h:82
ULONG IdleTimeoutAc
Definition: powrprof.h:70
BOOLEAN OptimizeForPowerDc
Definition: powrprof.h:84
UCHAR ForcedThrottleAc
Definition: powrprof.h:87
UCHAR ForcedThrottleDc
Definition: powrprof.h:88
POWER_ACTION_POLICY IdleDc
Definition: powrprof.h:69
UCHAR ThrottlePolicyDc
Definition: powrprof.h:75
UCHAR IdleSensitivityAc
Definition: powrprof.h:72
ULONG IdleTimeoutDc
Definition: powrprof.h:71
BOOLEAN OptimizeForPowerAc
Definition: powrprof.h:83
ULONG VideoTimeoutAc
Definition: powrprof.h:79
uint32_t ULONG
Definition: typedefs.h:59
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
LONG_PTR LPARAM
Definition: windef.h:208
#define WINAPI
Definition: msvc.h:6
unsigned char UCHAR
Definition: xmlstorage.h:181
WCHAR * LPWSTR
Definition: xmlstorage.h:184