VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/powrprof.h@ 78046

Last change on this file since 78046 was 53206, checked in by vboxsync, 10 years ago

Devices/vmsvga: header fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.1 KB
Line 
1/*
2 * Copyright (C) 2005 Benjamin Cutler
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19/*
20 * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28#ifndef __WINE_POWRPROF_H
29#define __WINE_POWRPROF_H 1
30
31#define EnableSysTrayBatteryMeter 0x01
32#define EnableMultiBatteryDisplay 0x02
33#define EnablePasswordLogon 0x04
34#define EnableWakeOnRing 0x08
35#define EnableVideoDimDisplay 0x10
36
37typedef struct _GLOBAL_MACHINE_POWER_POLICY {
38 ULONG Revision;
39 SYSTEM_POWER_STATE LidOpenWakeAc;
40 SYSTEM_POWER_STATE LidOpenWakeDc;
41 ULONG BroadcastCapacityResolution;
42} GLOBAL_MACHINE_POWER_POLICY,
43*PGLOBAL_MACHINE_POWER_POLICY;
44
45typedef struct _GLOBAL_USER_POWER_POLICY {
46 ULONG Revision;
47 POWER_ACTION_POLICY PowerButtonAc;
48 POWER_ACTION_POLICY PowerButtonDc;
49 POWER_ACTION_POLICY SleepButtonAc;
50 POWER_ACTION_POLICY SleepButtonDc;
51 POWER_ACTION_POLICY LidCloseAc;
52 POWER_ACTION_POLICY LidCloseDc;
53 SYSTEM_POWER_LEVEL DischargePolicy[NUM_DISCHARGE_POLICIES];
54 ULONG GlobalFlags;
55} GLOBAL_USER_POWER_POLICY,
56*PGLOBAL_USER_POWER_POLICY;
57
58typedef struct _GLOBAL_POWER_POLICY {
59 GLOBAL_USER_POWER_POLICY user;
60 GLOBAL_MACHINE_POWER_POLICY mach;
61} GLOBAL_POWER_POLICY,
62*PGLOBAL_POWER_POLICY;
63
64typedef struct _MACHINE_POWER_POLICY {
65 ULONG Revision;
66 SYSTEM_POWER_STATE MinSleepAc;
67 SYSTEM_POWER_STATE MinSleepDc;
68 SYSTEM_POWER_STATE ReducedLatencySleepAc;
69 SYSTEM_POWER_STATE ReducedLatencySleepDc;
70 ULONG DozeTimeoutAc;
71 ULONG DozeTimeoutDc;
72 ULONG DozeS4TimeoutAc;
73 ULONG DozeS4TimeoutDc;
74 UCHAR MinThrottleAc;
75 UCHAR MinThrottleDc;
76 UCHAR pad1[2];
77 POWER_ACTION_POLICY OverThrottledAc;
78 POWER_ACTION_POLICY OverThrottledDc;
79} MACHINE_POWER_POLICY,
80*PMACHINE_POWER_POLICY;
81
82typedef struct _MACHINE_PROCESSOR_POWER_POLICY {
83 ULONG Revision;
84 PROCESSOR_POWER_POLICY ProcessorPolicyAc;
85 PROCESSOR_POWER_POLICY ProcessorPolicyDc;
86} MACHINE_PROCESSOR_POWER_POLICY,
87*PMACHINE_PROCESSOR_POWER_POLICY;
88
89typedef struct _USER_POWER_POLICY {
90 ULONG Revision;
91 POWER_ACTION_POLICY IdleAc;
92 POWER_ACTION_POLICY IdleDc;
93 ULONG IdleTimeoutAc;
94 ULONG IdleTimeoutDc;
95 UCHAR IdleSensitivityAc;
96 UCHAR IdleSensitivityDc;
97 UCHAR ThrottlePolicyAc;
98 UCHAR ThrottlePolicyDc;
99 SYSTEM_POWER_STATE MaxSleepAc;
100 SYSTEM_POWER_STATE MaxSleepDc;
101 ULONG Reserved[2];
102 ULONG VideoTimeoutAc;
103 ULONG VideoTimeoutDc;
104 ULONG SpindownTimeoutAc;
105 ULONG SpindownTimeoutDc;
106 BOOLEAN OptimizeForPowerAc;
107 BOOLEAN OptimizeForPowerDc;
108 UCHAR FanThrottleToleranceAc;
109 UCHAR FanThrottleToleranceDc;
110 UCHAR ForcedThrottleAc;
111 UCHAR ForcedThrottleDc;
112} USER_POWER_POLICY,
113*PUSER_POWER_POLICY;
114
115typedef struct _POWER_POLICY {
116 USER_POWER_POLICY user;
117 MACHINE_POWER_POLICY mach;
118} POWER_POLICY,
119*PPOWER_POLICY;
120
121
122#ifdef __cplusplus
123extern "C" {
124#endif
125
126typedef BOOLEAN (CALLBACK* PWRSCHEMESENUMPROC)(UINT, DWORD, LPWSTR, DWORD, LPWSTR, PPOWER_POLICY, LPARAM);
127
128NTSTATUS WINAPI CallNtPowerInformation(POWER_INFORMATION_LEVEL, PVOID, ULONG, PVOID, ULONG);
129BOOLEAN WINAPI CanUserWritePwrScheme(VOID);
130BOOLEAN WINAPI DeletePwrScheme(UINT);
131BOOLEAN WINAPI EnumPwrSchemes(PWRSCHEMESENUMPROC, LPARAM);
132BOOLEAN WINAPI GetActivePwrScheme(PUINT);
133BOOLEAN WINAPI GetCurrentPowerPolicies(PGLOBAL_POWER_POLICY, PPOWER_POLICY);
134BOOLEAN WINAPI GetPwrCapabilities(PSYSTEM_POWER_CAPABILITIES);
135BOOLEAN WINAPI GetPwrDiskSpindownRange(PUINT, PUINT);
136BOOLEAN WINAPI IsAdminOverrideActive(PADMINISTRATOR_POWER_POLICY);
137BOOLEAN WINAPI IsPwrHibernateAllowed(VOID);
138BOOLEAN WINAPI IsPwrShutdownAllowed(VOID);
139BOOLEAN WINAPI IsPwrSuspendAllowed(VOID);
140BOOLEAN WINAPI ReadGlobalPwrPolicy(PGLOBAL_POWER_POLICY);
141BOOLEAN WINAPI ReadProcessorPwrScheme(UINT, PMACHINE_PROCESSOR_POWER_POLICY);
142BOOLEAN WINAPI ReadPwrScheme(UINT, PPOWER_POLICY);
143BOOLEAN WINAPI SetActivePwrScheme(UINT, PGLOBAL_POWER_POLICY, PPOWER_POLICY);
144BOOLEAN WINAPI SetSuspendState(BOOLEAN, BOOLEAN, BOOLEAN);
145BOOLEAN WINAPI WriteGlobalPwrPolicy(PGLOBAL_POWER_POLICY);
146BOOLEAN WINAPI WriteProcessorPwrScheme(UINT, PMACHINE_PROCESSOR_POWER_POLICY);
147BOOLEAN WINAPI WritePwrScheme(PUINT, LPWSTR, LPWSTR, PPOWER_POLICY);
148
149#ifdef __cplusplus
150}
151#endif
152
153#endif /* _POWRPROF_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette