1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2 #[link(name = "windows")]
4 #[doc = "*Required features: 'Win32_System_Power'*"]
5 pub fn CallNtPowerInformation(informationlevel
: POWER_INFORMATION_LEVEL
, inputbuffer
: *const ::core
::ffi
::c_void
, inputbufferlength
: u32, outputbuffer
: *mut ::core
::ffi
::c_void
, outputbufferlength
: u32) -> i32;
6 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
7 #[cfg(feature = "Win32_Foundation")]
8 pub fn CanUserWritePwrScheme() -> super::super::Foundation
::BOOLEAN
;
9 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
10 #[cfg(feature = "Win32_Foundation")]
11 pub fn DeletePwrScheme(uiid
: u32) -> super::super::Foundation
::BOOLEAN
;
12 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
13 #[cfg(feature = "Win32_Foundation")]
14 pub fn DevicePowerClose() -> super::super::Foundation
::BOOLEAN
;
15 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
16 #[cfg(feature = "Win32_Foundation")]
17 pub fn DevicePowerEnumDevices(queryindex
: u32, queryinterpretationflags
: u32, queryflags
: u32, preturnbuffer
: *mut u8, pbuffersize
: *mut u32) -> super::super::Foundation
::BOOLEAN
;
18 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
19 #[cfg(feature = "Win32_Foundation")]
20 pub fn DevicePowerOpen(debugmask
: u32) -> super::super::Foundation
::BOOLEAN
;
21 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
22 #[cfg(feature = "Win32_Foundation")]
23 pub fn DevicePowerSetDeviceState(devicedescription
: super::super::Foundation
::PWSTR
, setflags
: u32, setdata
: *const ::core
::ffi
::c_void
) -> u32;
24 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
25 #[cfg(feature = "Win32_Foundation")]
26 pub fn EnumPwrSchemes(lpfn
: PWRSCHEMESENUMPROC
, lparam
: super::super::Foundation
::LPARAM
) -> super::super::Foundation
::BOOLEAN
;
27 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
28 #[cfg(feature = "Win32_Foundation")]
29 pub fn GetActivePwrScheme(puiid
: *mut u32) -> super::super::Foundation
::BOOLEAN
;
30 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
31 #[cfg(feature = "Win32_Foundation")]
32 pub fn GetCurrentPowerPolicies(pglobalpowerpolicy
: *mut GLOBAL_POWER_POLICY
, ppowerpolicy
: *mut POWER_POLICY
) -> super::super::Foundation
::BOOLEAN
;
33 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
34 #[cfg(feature = "Win32_Foundation")]
35 pub fn GetDevicePowerState(hdevice
: super::super::Foundation
::HANDLE
, pfon
: *mut super::super::Foundation
::BOOL
) -> super::super::Foundation
::BOOL
;
36 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
37 #[cfg(feature = "Win32_Foundation")]
38 pub fn GetPwrCapabilities(lpspc
: *mut SYSTEM_POWER_CAPABILITIES
) -> super::super::Foundation
::BOOLEAN
;
39 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
40 #[cfg(feature = "Win32_Foundation")]
41 pub fn GetPwrDiskSpindownRange(puimax
: *mut u32, puimin
: *mut u32) -> super::super::Foundation
::BOOLEAN
;
42 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
43 #[cfg(feature = "Win32_Foundation")]
44 pub fn GetSystemPowerStatus(lpsystempowerstatus
: *mut SYSTEM_POWER_STATUS
) -> super::super::Foundation
::BOOL
;
45 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
46 #[cfg(feature = "Win32_Foundation")]
47 pub fn IsAdminOverrideActive(papp
: *const ADMINISTRATOR_POWER_POLICY
) -> super::super::Foundation
::BOOLEAN
;
48 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
49 #[cfg(feature = "Win32_Foundation")]
50 pub fn IsPwrHibernateAllowed() -> super::super::Foundation
::BOOLEAN
;
51 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
52 #[cfg(feature = "Win32_Foundation")]
53 pub fn IsPwrShutdownAllowed() -> super::super::Foundation
::BOOLEAN
;
54 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
55 #[cfg(feature = "Win32_Foundation")]
56 pub fn IsPwrSuspendAllowed() -> super::super::Foundation
::BOOLEAN
;
57 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
58 #[cfg(feature = "Win32_Foundation")]
59 pub fn IsSystemResumeAutomatic() -> super::super::Foundation
::BOOL
;
60 #[doc = "*Required features: 'Win32_System_Power'*"]
61 pub fn PowerCanRestoreIndividualDefaultPowerScheme(schemeguid
: *const ::windows_sys
::core
::GUID
) -> u32;
62 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
63 #[cfg(feature = "Win32_Foundation")]
64 pub fn PowerClearRequest(powerrequest
: super::super::Foundation
::HANDLE
, requesttype
: POWER_REQUEST_TYPE
) -> super::super::Foundation
::BOOL
;
65 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
66 #[cfg(feature = "Win32_System_Registry")]
67 pub fn PowerCreatePossibleSetting(rootsystempowerkey
: super::Registry
::HKEY
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, possiblesettingindex
: u32) -> u32;
68 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation', 'Win32_System_Threading'*"]
69 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Threading"))]
70 pub fn PowerCreateRequest(context
: *const super::Threading
::REASON_CONTEXT
) -> super::super::Foundation
::HANDLE
;
71 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
72 #[cfg(feature = "Win32_System_Registry")]
73 pub fn PowerCreateSetting(rootsystempowerkey
: super::Registry
::HKEY
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
) -> u32;
74 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
75 #[cfg(feature = "Win32_System_Registry")]
76 pub fn PowerDeleteScheme(rootpowerkey
: super::Registry
::HKEY
, schemeguid
: *const ::windows_sys
::core
::GUID
) -> u32;
77 #[doc = "*Required features: 'Win32_System_Power'*"]
78 pub fn PowerDeterminePlatformRole() -> POWER_PLATFORM_ROLE
;
79 #[doc = "*Required features: 'Win32_System_Power'*"]
80 pub fn PowerDeterminePlatformRoleEx(version
: POWER_PLATFORM_ROLE_VERSION
) -> POWER_PLATFORM_ROLE
;
81 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
82 #[cfg(feature = "Win32_System_Registry")]
83 pub fn PowerDuplicateScheme(rootpowerkey
: super::Registry
::HKEY
, sourceschemeguid
: *const ::windows_sys
::core
::GUID
, destinationschemeguid
: *mut *mut ::windows_sys
::core
::GUID
) -> u32;
84 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
85 #[cfg(feature = "Win32_System_Registry")]
86 pub fn PowerEnumerate(rootpowerkey
: super::Registry
::HKEY
, schemeguid
: *const ::windows_sys
::core
::GUID
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, accessflags
: POWER_DATA_ACCESSOR
, index
: u32, buffer
: *mut u8, buffersize
: *mut u32) -> u32;
87 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
88 #[cfg(feature = "Win32_System_Registry")]
89 pub fn PowerGetActiveScheme(userrootpowerkey
: super::Registry
::HKEY
, activepolicyguid
: *mut *mut ::windows_sys
::core
::GUID
) -> u32;
90 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation', 'Win32_System_Registry'*"]
91 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
92 pub fn PowerImportPowerScheme(rootpowerkey
: super::Registry
::HKEY
, importfilenamepath
: super::super::Foundation
::PWSTR
, destinationschemeguid
: *mut *mut ::windows_sys
::core
::GUID
) -> u32;
93 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
94 #[cfg(feature = "Win32_Foundation")]
95 pub fn PowerIsSettingRangeDefined(subkeyguid
: *const ::windows_sys
::core
::GUID
, settingguid
: *const ::windows_sys
::core
::GUID
) -> super::super::Foundation
::BOOLEAN
;
96 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation', 'Win32_System_Registry'*"]
97 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
98 pub fn PowerOpenSystemPowerKey(phsystempowerkey
: *mut super::Registry
::HKEY
, access
: u32, openexisting
: super::super::Foundation
::BOOL
) -> u32;
99 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation', 'Win32_System_Registry'*"]
100 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
101 pub fn PowerOpenUserPowerKey(phuserpowerkey
: *mut super::Registry
::HKEY
, access
: u32, openexisting
: super::super::Foundation
::BOOL
) -> u32;
102 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
103 #[cfg(feature = "Win32_System_Registry")]
104 pub fn PowerReadACDefaultIndex(rootpowerkey
: super::Registry
::HKEY
, schemepersonalityguid
: *const ::windows_sys
::core
::GUID
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, acdefaultindex
: *mut u32) -> u32;
105 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
106 #[cfg(feature = "Win32_System_Registry")]
107 pub fn PowerReadACValue(rootpowerkey
: super::Registry
::HKEY
, schemeguid
: *const ::windows_sys
::core
::GUID
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, r
#type: *mut u32, buffer: *mut u8, buffersize: *mut u32) -> u32;
108 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
109 #[cfg(feature = "Win32_System_Registry")]
110 pub fn PowerReadACValueIndex(rootpowerkey
: super::Registry
::HKEY
, schemeguid
: *const ::windows_sys
::core
::GUID
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, acvalueindex
: *mut u32) -> u32;
111 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
112 #[cfg(feature = "Win32_System_Registry")]
113 pub fn PowerReadDCDefaultIndex(rootpowerkey
: super::Registry
::HKEY
, schemepersonalityguid
: *const ::windows_sys
::core
::GUID
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, dcdefaultindex
: *mut u32) -> u32;
114 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
115 #[cfg(feature = "Win32_System_Registry")]
116 pub fn PowerReadDCValue(rootpowerkey
: super::Registry
::HKEY
, schemeguid
: *const ::windows_sys
::core
::GUID
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, r
#type: *mut u32, buffer: *mut u8, buffersize: *mut u32) -> u32;
117 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
118 #[cfg(feature = "Win32_System_Registry")]
119 pub fn PowerReadDCValueIndex(rootpowerkey
: super::Registry
::HKEY
, schemeguid
: *const ::windows_sys
::core
::GUID
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, dcvalueindex
: *mut u32) -> u32;
120 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
121 #[cfg(feature = "Win32_System_Registry")]
122 pub fn PowerReadDescription(rootpowerkey
: super::Registry
::HKEY
, schemeguid
: *const ::windows_sys
::core
::GUID
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, buffer
: *mut u8, buffersize
: *mut u32) -> u32;
123 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
124 #[cfg(feature = "Win32_System_Registry")]
125 pub fn PowerReadFriendlyName(rootpowerkey
: super::Registry
::HKEY
, schemeguid
: *const ::windows_sys
::core
::GUID
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, buffer
: *mut u8, buffersize
: *mut u32) -> u32;
126 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
127 #[cfg(feature = "Win32_System_Registry")]
128 pub fn PowerReadIconResourceSpecifier(rootpowerkey
: super::Registry
::HKEY
, schemeguid
: *const ::windows_sys
::core
::GUID
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, buffer
: *mut u8, buffersize
: *mut u32) -> u32;
129 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
130 #[cfg(feature = "Win32_System_Registry")]
131 pub fn PowerReadPossibleDescription(rootpowerkey
: super::Registry
::HKEY
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, possiblesettingindex
: u32, buffer
: *mut u8, buffersize
: *mut u32) -> u32;
132 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
133 #[cfg(feature = "Win32_System_Registry")]
134 pub fn PowerReadPossibleFriendlyName(rootpowerkey
: super::Registry
::HKEY
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, possiblesettingindex
: u32, buffer
: *mut u8, buffersize
: *mut u32) -> u32;
135 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
136 #[cfg(feature = "Win32_System_Registry")]
137 pub fn PowerReadPossibleValue(rootpowerkey
: super::Registry
::HKEY
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, r
#type: *mut u32, possiblesettingindex: u32, buffer: *mut u8, buffersize: *mut u32) -> u32;
138 #[doc = "*Required features: 'Win32_System_Power'*"]
139 pub fn PowerReadSettingAttributes(subgroupguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
) -> u32;
140 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
141 #[cfg(feature = "Win32_System_Registry")]
142 pub fn PowerReadValueIncrement(rootpowerkey
: super::Registry
::HKEY
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, valueincrement
: *mut u32) -> u32;
143 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
144 #[cfg(feature = "Win32_System_Registry")]
145 pub fn PowerReadValueMax(rootpowerkey
: super::Registry
::HKEY
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, valuemaximum
: *mut u32) -> u32;
146 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
147 #[cfg(feature = "Win32_System_Registry")]
148 pub fn PowerReadValueMin(rootpowerkey
: super::Registry
::HKEY
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, valueminimum
: *mut u32) -> u32;
149 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
150 #[cfg(feature = "Win32_System_Registry")]
151 pub fn PowerReadValueUnitsSpecifier(rootpowerkey
: super::Registry
::HKEY
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, buffer
: *mut u8, buffersize
: *mut u32) -> u32;
152 #[doc = "*Required features: 'Win32_System_Power'*"]
153 pub fn PowerRegisterForEffectivePowerModeNotifications(version
: u32, callback
: EFFECTIVE_POWER_MODE_CALLBACK
, context
: *const ::core
::ffi
::c_void
, registrationhandle
: *mut *mut ::core
::ffi
::c_void
) -> ::windows_sys
::core
::HRESULT
;
154 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
155 #[cfg(feature = "Win32_Foundation")]
156 pub fn PowerRegisterSuspendResumeNotification(flags
: u32, recipient
: super::super::Foundation
::HANDLE
, registrationhandle
: *mut *mut ::core
::ffi
::c_void
) -> u32;
157 #[doc = "*Required features: 'Win32_System_Power'*"]
158 pub fn PowerRemovePowerSetting(powersettingsubkeyguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
) -> u32;
159 #[doc = "*Required features: 'Win32_System_Power'*"]
160 pub fn PowerReplaceDefaultPowerSchemes() -> u32;
161 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
162 #[cfg(feature = "Win32_Foundation")]
163 pub fn PowerReportThermalEvent(event
: *const THERMAL_EVENT
) -> u32;
164 #[doc = "*Required features: 'Win32_System_Power'*"]
165 pub fn PowerRestoreDefaultPowerSchemes() -> u32;
166 #[doc = "*Required features: 'Win32_System_Power'*"]
167 pub fn PowerRestoreIndividualDefaultPowerScheme(schemeguid
: *const ::windows_sys
::core
::GUID
) -> u32;
168 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
169 #[cfg(feature = "Win32_System_Registry")]
170 pub fn PowerSetActiveScheme(userrootpowerkey
: super::Registry
::HKEY
, schemeguid
: *const ::windows_sys
::core
::GUID
) -> u32;
171 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
172 #[cfg(feature = "Win32_Foundation")]
173 pub fn PowerSetRequest(powerrequest
: super::super::Foundation
::HANDLE
, requesttype
: POWER_REQUEST_TYPE
) -> super::super::Foundation
::BOOL
;
174 #[doc = "*Required features: 'Win32_System_Power'*"]
175 pub fn PowerSettingAccessCheck(accessflags
: POWER_DATA_ACCESSOR
, powerguid
: *const ::windows_sys
::core
::GUID
) -> u32;
176 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
177 #[cfg(feature = "Win32_System_Registry")]
178 pub fn PowerSettingAccessCheckEx(accessflags
: POWER_DATA_ACCESSOR
, powerguid
: *const ::windows_sys
::core
::GUID
, accesstype
: super::Registry
::REG_SAM_FLAGS
) -> u32;
179 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
180 #[cfg(feature = "Win32_Foundation")]
181 pub fn PowerSettingRegisterNotification(settingguid
: *const ::windows_sys
::core
::GUID
, flags
: POWER_SETTING_REGISTER_NOTIFICATION_FLAGS
, recipient
: super::super::Foundation
::HANDLE
, registrationhandle
: *mut *mut ::core
::ffi
::c_void
) -> u32;
182 #[doc = "*Required features: 'Win32_System_Power'*"]
183 pub fn PowerSettingUnregisterNotification(registrationhandle
: HPOWERNOTIFY
) -> u32;
184 #[doc = "*Required features: 'Win32_System_Power'*"]
185 pub fn PowerUnregisterFromEffectivePowerModeNotifications(registrationhandle
: *const ::core
::ffi
::c_void
) -> ::windows_sys
::core
::HRESULT
;
186 #[doc = "*Required features: 'Win32_System_Power'*"]
187 pub fn PowerUnregisterSuspendResumeNotification(registrationhandle
: HPOWERNOTIFY
) -> u32;
188 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
189 #[cfg(feature = "Win32_System_Registry")]
190 pub fn PowerWriteACDefaultIndex(rootsystempowerkey
: super::Registry
::HKEY
, schemepersonalityguid
: *const ::windows_sys
::core
::GUID
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, defaultacindex
: u32) -> u32;
191 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
192 #[cfg(feature = "Win32_System_Registry")]
193 pub fn PowerWriteACValueIndex(rootpowerkey
: super::Registry
::HKEY
, schemeguid
: *const ::windows_sys
::core
::GUID
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, acvalueindex
: u32) -> u32;
194 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
195 #[cfg(feature = "Win32_System_Registry")]
196 pub fn PowerWriteDCDefaultIndex(rootsystempowerkey
: super::Registry
::HKEY
, schemepersonalityguid
: *const ::windows_sys
::core
::GUID
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, defaultdcindex
: u32) -> u32;
197 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
198 #[cfg(feature = "Win32_System_Registry")]
199 pub fn PowerWriteDCValueIndex(rootpowerkey
: super::Registry
::HKEY
, schemeguid
: *const ::windows_sys
::core
::GUID
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, dcvalueindex
: u32) -> u32;
200 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
201 #[cfg(feature = "Win32_System_Registry")]
202 pub fn PowerWriteDescription(rootpowerkey
: super::Registry
::HKEY
, schemeguid
: *const ::windows_sys
::core
::GUID
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, buffer
: *const u8, buffersize
: u32) -> u32;
203 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
204 #[cfg(feature = "Win32_System_Registry")]
205 pub fn PowerWriteFriendlyName(rootpowerkey
: super::Registry
::HKEY
, schemeguid
: *const ::windows_sys
::core
::GUID
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, buffer
: *const u8, buffersize
: u32) -> u32;
206 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
207 #[cfg(feature = "Win32_System_Registry")]
208 pub fn PowerWriteIconResourceSpecifier(rootpowerkey
: super::Registry
::HKEY
, schemeguid
: *const ::windows_sys
::core
::GUID
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, buffer
: *const u8, buffersize
: u32) -> u32;
209 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
210 #[cfg(feature = "Win32_System_Registry")]
211 pub fn PowerWritePossibleDescription(rootpowerkey
: super::Registry
::HKEY
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, possiblesettingindex
: u32, buffer
: *const u8, buffersize
: u32) -> u32;
212 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
213 #[cfg(feature = "Win32_System_Registry")]
214 pub fn PowerWritePossibleFriendlyName(rootpowerkey
: super::Registry
::HKEY
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, possiblesettingindex
: u32, buffer
: *const u8, buffersize
: u32) -> u32;
215 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
216 #[cfg(feature = "Win32_System_Registry")]
217 pub fn PowerWritePossibleValue(rootpowerkey
: super::Registry
::HKEY
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, r
#type: u32, possiblesettingindex: u32, buffer: *const u8, buffersize: u32) -> u32;
218 #[doc = "*Required features: 'Win32_System_Power'*"]
219 pub fn PowerWriteSettingAttributes(subgroupguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, attributes
: u32) -> u32;
220 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
221 #[cfg(feature = "Win32_System_Registry")]
222 pub fn PowerWriteValueIncrement(rootpowerkey
: super::Registry
::HKEY
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, valueincrement
: u32) -> u32;
223 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
224 #[cfg(feature = "Win32_System_Registry")]
225 pub fn PowerWriteValueMax(rootpowerkey
: super::Registry
::HKEY
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, valuemaximum
: u32) -> u32;
226 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
227 #[cfg(feature = "Win32_System_Registry")]
228 pub fn PowerWriteValueMin(rootpowerkey
: super::Registry
::HKEY
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, valueminimum
: u32) -> u32;
229 #[doc = "*Required features: 'Win32_System_Power', 'Win32_System_Registry'*"]
230 #[cfg(feature = "Win32_System_Registry")]
231 pub fn PowerWriteValueUnitsSpecifier(rootpowerkey
: super::Registry
::HKEY
, subgroupofpowersettingsguid
: *const ::windows_sys
::core
::GUID
, powersettingguid
: *const ::windows_sys
::core
::GUID
, buffer
: *const u8, buffersize
: u32) -> u32;
232 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
233 #[cfg(feature = "Win32_Foundation")]
234 pub fn ReadGlobalPwrPolicy(pglobalpowerpolicy
: *const GLOBAL_POWER_POLICY
) -> super::super::Foundation
::BOOLEAN
;
235 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
236 #[cfg(feature = "Win32_Foundation")]
237 pub fn ReadProcessorPwrScheme(uiid
: u32, pmachineprocessorpowerpolicy
: *mut MACHINE_PROCESSOR_POWER_POLICY
) -> super::super::Foundation
::BOOLEAN
;
238 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
239 #[cfg(feature = "Win32_Foundation")]
240 pub fn ReadPwrScheme(uiid
: u32, ppowerpolicy
: *mut POWER_POLICY
) -> super::super::Foundation
::BOOLEAN
;
241 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
242 #[cfg(feature = "Win32_Foundation")]
243 pub fn RegisterPowerSettingNotification(hrecipient
: super::super::Foundation
::HANDLE
, powersettingguid
: *const ::windows_sys
::core
::GUID
, flags
: u32) -> HPOWERNOTIFY
;
244 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
245 #[cfg(feature = "Win32_Foundation")]
246 pub fn RegisterSuspendResumeNotification(hrecipient
: super::super::Foundation
::HANDLE
, flags
: u32) -> HPOWERNOTIFY
;
247 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
248 #[cfg(feature = "Win32_Foundation")]
249 pub fn RequestWakeupLatency(latency
: LATENCY_TIME
) -> super::super::Foundation
::BOOL
;
250 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
251 #[cfg(feature = "Win32_Foundation")]
252 pub fn SetActivePwrScheme(uiid
: u32, pglobalpowerpolicy
: *const GLOBAL_POWER_POLICY
, ppowerpolicy
: *const POWER_POLICY
) -> super::super::Foundation
::BOOLEAN
;
253 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
254 #[cfg(feature = "Win32_Foundation")]
255 pub fn SetSuspendState(bhibernate
: super::super::Foundation
::BOOLEAN
, bforce
: super::super::Foundation
::BOOLEAN
, bwakeupeventsdisabled
: super::super::Foundation
::BOOLEAN
) -> super::super::Foundation
::BOOLEAN
;
256 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
257 #[cfg(feature = "Win32_Foundation")]
258 pub fn SetSystemPowerState(fsuspend
: super::super::Foundation
::BOOL
, fforce
: super::super::Foundation
::BOOL
) -> super::super::Foundation
::BOOL
;
259 #[doc = "*Required features: 'Win32_System_Power'*"]
260 pub fn SetThreadExecutionState(esflags
: EXECUTION_STATE
) -> EXECUTION_STATE
;
261 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
262 #[cfg(feature = "Win32_Foundation")]
263 pub fn UnregisterPowerSettingNotification(handle
: HPOWERNOTIFY
) -> super::super::Foundation
::BOOL
;
264 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
265 #[cfg(feature = "Win32_Foundation")]
266 pub fn UnregisterSuspendResumeNotification(handle
: HPOWERNOTIFY
) -> super::super::Foundation
::BOOL
;
267 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
268 #[cfg(feature = "Win32_Foundation")]
269 pub fn ValidatePowerPolicies(pglobalpowerpolicy
: *mut GLOBAL_POWER_POLICY
, ppowerpolicy
: *mut POWER_POLICY
) -> super::super::Foundation
::BOOLEAN
;
270 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
271 #[cfg(feature = "Win32_Foundation")]
272 pub fn WriteGlobalPwrPolicy(pglobalpowerpolicy
: *const GLOBAL_POWER_POLICY
) -> super::super::Foundation
::BOOLEAN
;
273 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
274 #[cfg(feature = "Win32_Foundation")]
275 pub fn WriteProcessorPwrScheme(uiid
: u32, pmachineprocessorpowerpolicy
: *const MACHINE_PROCESSOR_POWER_POLICY
) -> super::super::Foundation
::BOOLEAN
;
276 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
277 #[cfg(feature = "Win32_Foundation")]
278 pub fn WritePwrScheme(puiid
: *const u32, lpszschemename
: super::super::Foundation
::PWSTR
, lpszdescription
: super::super::Foundation
::PWSTR
, lpscheme
: *const POWER_POLICY
) -> super::super::Foundation
::BOOLEAN
;
281 #[doc = "*Required features: 'Win32_System_Power'*"]
282 pub struct ACPI_REAL_TIME
{
290 pub Milliseconds
: u16,
293 pub Reserved1
: [u8; 3],
295 impl ::core
::marker
::Copy
for ACPI_REAL_TIME {}
296 impl ::core
::clone
::Clone
for ACPI_REAL_TIME
{
297 fn clone(&self) -> Self {
301 #[doc = "*Required features: 'Win32_System_Power'*"]
302 pub const ACPI_TIME_ADJUST_DAYLIGHT
: u32 = 1u32;
303 #[doc = "*Required features: 'Win32_System_Power'*"]
304 pub const ACPI_TIME_IN_DAYLIGHT
: u32 = 2u32;
305 #[doc = "*Required features: 'Win32_System_Power'*"]
306 pub const ACPI_TIME_ZONE_UNKNOWN
: u32 = 2047u32;
307 #[doc = "*Required features: 'Win32_System_Power'*"]
308 pub const ACTIVE_COOLING
: u32 = 0u32;
310 #[doc = "*Required features: 'Win32_System_Power'*"]
311 pub struct ADMINISTRATOR_POWER_POLICY
{
312 pub MinSleep
: SYSTEM_POWER_STATE
,
313 pub MaxSleep
: SYSTEM_POWER_STATE
,
314 pub MinVideoTimeout
: u32,
315 pub MaxVideoTimeout
: u32,
316 pub MinSpindownTimeout
: u32,
317 pub MaxSpindownTimeout
: u32,
319 impl ::core
::marker
::Copy
for ADMINISTRATOR_POWER_POLICY {}
320 impl ::core
::clone
::Clone
for ADMINISTRATOR_POWER_POLICY
{
321 fn clone(&self) -> Self {
325 #[doc = "*Required features: 'Win32_System_Power'*"]
326 pub const BATTERY_CAPACITY_RELATIVE
: u32 = 1073741824u32;
328 #[doc = "*Required features: 'Win32_System_Power'*"]
329 pub struct BATTERY_CHARGER_STATUS
{
330 pub Type
: BATTERY_CHARGING_SOURCE_TYPE
,
331 pub VaData
: [u32; 1],
333 impl ::core
::marker
::Copy
for BATTERY_CHARGER_STATUS {}
334 impl ::core
::clone
::Clone
for BATTERY_CHARGER_STATUS
{
335 fn clone(&self) -> Self {
339 #[doc = "*Required features: 'Win32_System_Power'*"]
340 pub const BATTERY_CHARGING
: u32 = 4u32;
342 #[doc = "*Required features: 'Win32_System_Power'*"]
343 pub struct BATTERY_CHARGING_SOURCE
{
344 pub Type
: BATTERY_CHARGING_SOURCE_TYPE
,
347 impl ::core
::marker
::Copy
for BATTERY_CHARGING_SOURCE {}
348 impl ::core
::clone
::Clone
for BATTERY_CHARGING_SOURCE
{
349 fn clone(&self) -> Self {
354 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
355 #[cfg(feature = "Win32_Foundation")]
356 pub struct BATTERY_CHARGING_SOURCE_INFORMATION
{
357 pub Type
: BATTERY_CHARGING_SOURCE_TYPE
,
358 pub SourceOnline
: super::super::Foundation
::BOOLEAN
,
360 #[cfg(feature = "Win32_Foundation")]
361 impl ::core
::marker
::Copy
for BATTERY_CHARGING_SOURCE_INFORMATION {}
362 #[cfg(feature = "Win32_Foundation")]
363 impl ::core
::clone
::Clone
for BATTERY_CHARGING_SOURCE_INFORMATION
{
364 fn clone(&self) -> Self {
368 #[doc = "*Required features: 'Win32_System_Power'*"]
369 pub type BATTERY_CHARGING_SOURCE_TYPE
= i32;
370 #[doc = "*Required features: 'Win32_System_Power'*"]
371 pub const BatteryChargingSourceType_AC
: BATTERY_CHARGING_SOURCE_TYPE
= 1i32;
372 #[doc = "*Required features: 'Win32_System_Power'*"]
373 pub const BatteryChargingSourceType_USB
: BATTERY_CHARGING_SOURCE_TYPE
= 2i32;
374 #[doc = "*Required features: 'Win32_System_Power'*"]
375 pub const BatteryChargingSourceType_Wireless
: BATTERY_CHARGING_SOURCE_TYPE
= 3i32;
376 #[doc = "*Required features: 'Win32_System_Power'*"]
377 pub const BatteryChargingSourceType_Max
: BATTERY_CHARGING_SOURCE_TYPE
= 4i32;
378 #[doc = "*Required features: 'Win32_System_Power'*"]
379 pub const BATTERY_CLASS_MAJOR_VERSION
: u32 = 1u32;
380 #[doc = "*Required features: 'Win32_System_Power'*"]
381 pub const BATTERY_CLASS_MINOR_VERSION
: u32 = 0u32;
382 #[doc = "*Required features: 'Win32_System_Power'*"]
383 pub const BATTERY_CLASS_MINOR_VERSION_1
: u32 = 1u32;
384 #[doc = "*Required features: 'Win32_System_Power'*"]
385 pub const BATTERY_CRITICAL
: u32 = 8u32;
386 pub const BATTERY_CYCLE_COUNT_WMI_GUID
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID { data1: 4019772196, data2: 20, data3: 19493, data4: [165, 11, 199, 36, 174, 92, 211, 113] }
;
387 #[doc = "*Required features: 'Win32_System_Power'*"]
388 pub const BATTERY_DISCHARGING
: u32 = 2u32;
389 pub const BATTERY_FULL_CHARGED_CAPACITY_WMI_GUID
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID { data1: 1085539685, data2: 38647, data3: 17461, data4: [134, 148, 151, 224, 228, 57, 89, 5] }
;
391 #[doc = "*Required features: 'Win32_System_Power'*"]
392 pub struct BATTERY_INFORMATION
{
393 pub Capabilities
: u32,
395 pub Reserved
: [u8; 3],
396 pub Chemistry
: [u8; 4],
397 pub DesignedCapacity
: u32,
398 pub FullChargedCapacity
: u32,
399 pub DefaultAlert1
: u32,
400 pub DefaultAlert2
: u32,
401 pub CriticalBias
: u32,
404 impl ::core
::marker
::Copy
for BATTERY_INFORMATION {}
405 impl ::core
::clone
::Clone
for BATTERY_INFORMATION
{
406 fn clone(&self) -> Self {
410 #[doc = "*Required features: 'Win32_System_Power'*"]
411 pub const BATTERY_IS_SHORT_TERM
: u32 = 536870912u32;
413 #[doc = "*Required features: 'Win32_System_Power'*"]
414 pub struct BATTERY_MANUFACTURE_DATE
{
419 impl ::core
::marker
::Copy
for BATTERY_MANUFACTURE_DATE {}
420 impl ::core
::clone
::Clone
for BATTERY_MANUFACTURE_DATE
{
421 fn clone(&self) -> Self {
425 #[doc = "*Required features: 'Win32_System_Power'*"]
426 pub const BATTERY_MINIPORT_UPDATE_DATA_VER_1
: u32 = 1u32;
427 #[doc = "*Required features: 'Win32_System_Power'*"]
428 pub const BATTERY_MINIPORT_UPDATE_DATA_VER_2
: u32 = 2u32;
429 #[doc = "*Required features: 'Win32_System_Power'*"]
430 pub const BATTERY_POWER_ON_LINE
: u32 = 1u32;
432 #[doc = "*Required features: 'Win32_System_Power'*"]
433 pub struct BATTERY_QUERY_INFORMATION
{
435 pub InformationLevel
: BATTERY_QUERY_INFORMATION_LEVEL
,
438 impl ::core
::marker
::Copy
for BATTERY_QUERY_INFORMATION {}
439 impl ::core
::clone
::Clone
for BATTERY_QUERY_INFORMATION
{
440 fn clone(&self) -> Self {
444 #[doc = "*Required features: 'Win32_System_Power'*"]
445 pub type BATTERY_QUERY_INFORMATION_LEVEL
= i32;
446 #[doc = "*Required features: 'Win32_System_Power'*"]
447 pub const BatteryInformation
: BATTERY_QUERY_INFORMATION_LEVEL
= 0i32;
448 #[doc = "*Required features: 'Win32_System_Power'*"]
449 pub const BatteryGranularityInformation
: BATTERY_QUERY_INFORMATION_LEVEL
= 1i32;
450 #[doc = "*Required features: 'Win32_System_Power'*"]
451 pub const BatteryTemperature
: BATTERY_QUERY_INFORMATION_LEVEL
= 2i32;
452 #[doc = "*Required features: 'Win32_System_Power'*"]
453 pub const BatteryEstimatedTime
: BATTERY_QUERY_INFORMATION_LEVEL
= 3i32;
454 #[doc = "*Required features: 'Win32_System_Power'*"]
455 pub const BatteryDeviceName
: BATTERY_QUERY_INFORMATION_LEVEL
= 4i32;
456 #[doc = "*Required features: 'Win32_System_Power'*"]
457 pub const BatteryManufactureDate
: BATTERY_QUERY_INFORMATION_LEVEL
= 5i32;
458 #[doc = "*Required features: 'Win32_System_Power'*"]
459 pub const BatteryManufactureName
: BATTERY_QUERY_INFORMATION_LEVEL
= 6i32;
460 #[doc = "*Required features: 'Win32_System_Power'*"]
461 pub const BatteryUniqueID
: BATTERY_QUERY_INFORMATION_LEVEL
= 7i32;
462 #[doc = "*Required features: 'Win32_System_Power'*"]
463 pub const BatterySerialNumber
: BATTERY_QUERY_INFORMATION_LEVEL
= 8i32;
465 #[doc = "*Required features: 'Win32_System_Power'*"]
466 pub struct BATTERY_REPORTING_SCALE
{
467 pub Granularity
: u32,
470 impl ::core
::marker
::Copy
for BATTERY_REPORTING_SCALE {}
471 impl ::core
::clone
::Clone
for BATTERY_REPORTING_SCALE
{
472 fn clone(&self) -> Self {
476 pub const BATTERY_RUNTIME_WMI_GUID
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID { data1: 1398421351, data2: 6850, data3: 18876, data4: [160, 119, 63, 122, 2, 228, 10, 236] }
;
477 #[doc = "*Required features: 'Win32_System_Power'*"]
478 pub const BATTERY_SEALED
: u32 = 268435456u32;
479 #[doc = "*Required features: 'Win32_System_Power'*"]
480 pub const BATTERY_SET_CHARGER_ID_SUPPORTED
: u32 = 8u32;
481 #[doc = "*Required features: 'Win32_System_Power'*"]
482 pub const BATTERY_SET_CHARGE_SUPPORTED
: u32 = 1u32;
483 #[doc = "*Required features: 'Win32_System_Power'*"]
484 pub const BATTERY_SET_CHARGINGSOURCE_SUPPORTED
: u32 = 4u32;
485 #[doc = "*Required features: 'Win32_System_Power'*"]
486 pub const BATTERY_SET_DISCHARGE_SUPPORTED
: u32 = 2u32;
488 #[doc = "*Required features: 'Win32_System_Power'*"]
489 pub struct BATTERY_SET_INFORMATION
{
491 pub InformationLevel
: BATTERY_SET_INFORMATION_LEVEL
,
494 impl ::core
::marker
::Copy
for BATTERY_SET_INFORMATION {}
495 impl ::core
::clone
::Clone
for BATTERY_SET_INFORMATION
{
496 fn clone(&self) -> Self {
500 #[doc = "*Required features: 'Win32_System_Power'*"]
501 pub type BATTERY_SET_INFORMATION_LEVEL
= i32;
502 #[doc = "*Required features: 'Win32_System_Power'*"]
503 pub const BatteryCriticalBias
: BATTERY_SET_INFORMATION_LEVEL
= 0i32;
504 #[doc = "*Required features: 'Win32_System_Power'*"]
505 pub const BatteryCharge
: BATTERY_SET_INFORMATION_LEVEL
= 1i32;
506 #[doc = "*Required features: 'Win32_System_Power'*"]
507 pub const BatteryDischarge
: BATTERY_SET_INFORMATION_LEVEL
= 2i32;
508 #[doc = "*Required features: 'Win32_System_Power'*"]
509 pub const BatteryChargingSource
: BATTERY_SET_INFORMATION_LEVEL
= 3i32;
510 #[doc = "*Required features: 'Win32_System_Power'*"]
511 pub const BatteryChargerId
: BATTERY_SET_INFORMATION_LEVEL
= 4i32;
512 #[doc = "*Required features: 'Win32_System_Power'*"]
513 pub const BatteryChargerStatus
: BATTERY_SET_INFORMATION_LEVEL
= 5i32;
514 pub const BATTERY_STATIC_DATA_WMI_GUID
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID { data1: 98690147, data2: 58594, data3: 20137, data4: [128, 203, 155, 212, 179, 202, 6, 85] }
;
516 #[doc = "*Required features: 'Win32_System_Power'*"]
517 pub struct BATTERY_STATUS
{
523 impl ::core
::marker
::Copy
for BATTERY_STATUS {}
524 impl ::core
::clone
::Clone
for BATTERY_STATUS
{
525 fn clone(&self) -> Self {
529 pub const BATTERY_STATUS_CHANGE_WMI_GUID
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID { data1: 3453984963, data2: 31835, data3: 20035, data4: [160, 52, 5, 159, 165, 184, 67, 100] }
;
530 pub const BATTERY_STATUS_WMI_GUID
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID { data1: 4232474833, data2: 60351, data3: 16750, data4: [135, 206, 55, 74, 78, 188, 17, 26] }
;
531 #[doc = "*Required features: 'Win32_System_Power'*"]
532 pub const BATTERY_SYSTEM_BATTERY
: u32 = 2147483648u32;
533 pub const BATTERY_TAG_CHANGE_WMI_GUID
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID { data1: 1579118105, data2: 34694, data3: 19747, data4: [148, 252, 158, 116, 107, 213, 216, 136] }
;
534 #[doc = "*Required features: 'Win32_System_Power'*"]
535 pub const BATTERY_TAG_INVALID
: u32 = 0u32;
536 pub const BATTERY_TEMPERATURE_WMI_GUID
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID { data1: 441622861, data2: 44494, data3: 19012, data4: [154, 62, 200, 216, 241, 95, 242, 194] }
;
537 #[doc = "*Required features: 'Win32_System_Power'*"]
538 pub const BATTERY_UNKNOWN_CAPACITY
: u32 = 4294967295u32;
539 #[doc = "*Required features: 'Win32_System_Power'*"]
540 pub const BATTERY_UNKNOWN_CURRENT
: u32 = 4294967295u32;
541 #[doc = "*Required features: 'Win32_System_Power'*"]
542 pub const BATTERY_UNKNOWN_RATE
: u32 = 2147483648u32;
543 #[doc = "*Required features: 'Win32_System_Power'*"]
544 pub const BATTERY_UNKNOWN_TIME
: u32 = 4294967295u32;
545 #[doc = "*Required features: 'Win32_System_Power'*"]
546 pub const BATTERY_UNKNOWN_VOLTAGE
: u32 = 4294967295u32;
548 #[doc = "*Required features: 'Win32_System_Power'*"]
549 pub struct BATTERY_USB_CHARGER_STATUS
{
550 pub Type
: BATTERY_CHARGING_SOURCE_TYPE
,
555 pub PortType
: USB_CHARGER_PORT
,
557 pub PowerSourceInformation
: *mut ::core
::ffi
::c_void
,
558 pub OemCharger
: ::windows_sys
::core
::GUID
,
560 impl ::core
::marker
::Copy
for BATTERY_USB_CHARGER_STATUS {}
561 impl ::core
::clone
::Clone
for BATTERY_USB_CHARGER_STATUS
{
562 fn clone(&self) -> Self {
566 #[doc = "*Required features: 'Win32_System_Power'*"]
567 pub const BATTERY_USB_CHARGER_STATUS_FN_DEFAULT_USB
: u32 = 1u32;
568 #[doc = "*Required features: 'Win32_System_Power'*"]
569 pub const BATTERY_USB_CHARGER_STATUS_UCM_PD
: u32 = 2u32;
571 #[doc = "*Required features: 'Win32_System_Power'*"]
572 pub struct BATTERY_WAIT_STATUS
{
576 pub LowCapacity
: u32,
577 pub HighCapacity
: u32,
579 impl ::core
::marker
::Copy
for BATTERY_WAIT_STATUS {}
580 impl ::core
::clone
::Clone
for BATTERY_WAIT_STATUS
{
581 fn clone(&self) -> Self {
586 #[doc = "*Required features: 'Win32_System_Power'*"]
587 pub struct CM_POWER_DATA
{
589 pub PD_MostRecentPowerState
: DEVICE_POWER_STATE
,
590 pub PD_Capabilities
: u32,
591 pub PD_D1Latency
: u32,
592 pub PD_D2Latency
: u32,
593 pub PD_D3Latency
: u32,
594 pub PD_PowerStateMapping
: [DEVICE_POWER_STATE
; 7],
595 pub PD_DeepestSystemWake
: SYSTEM_POWER_STATE
,
597 impl ::core
::marker
::Copy
for CM_POWER_DATA {}
598 impl ::core
::clone
::Clone
for CM_POWER_DATA
{
599 fn clone(&self) -> Self {
603 #[doc = "*Required features: 'Win32_System_Power'*"]
604 pub const DEVICEPOWER_AND_OPERATION
: u32 = 1073741824u32;
605 #[doc = "*Required features: 'Win32_System_Power'*"]
606 pub const DEVICEPOWER_CLEAR_WAKEENABLED
: u32 = 2u32;
607 #[doc = "*Required features: 'Win32_System_Power'*"]
608 pub const DEVICEPOWER_FILTER_DEVICES_PRESENT
: u32 = 536870912u32;
609 #[doc = "*Required features: 'Win32_System_Power'*"]
610 pub const DEVICEPOWER_FILTER_HARDWARE
: u32 = 268435456u32;
611 #[doc = "*Required features: 'Win32_System_Power'*"]
612 pub const DEVICEPOWER_FILTER_ON_NAME
: u32 = 33554432u32;
613 #[doc = "*Required features: 'Win32_System_Power'*"]
614 pub const DEVICEPOWER_FILTER_WAKEENABLED
: u32 = 134217728u32;
615 #[doc = "*Required features: 'Win32_System_Power'*"]
616 pub const DEVICEPOWER_FILTER_WAKEPROGRAMMABLE
: u32 = 67108864u32;
617 #[doc = "*Required features: 'Win32_System_Power'*"]
618 pub const DEVICEPOWER_HARDWAREID
: u32 = 2147483648u32;
619 #[doc = "*Required features: 'Win32_System_Power'*"]
620 pub const DEVICEPOWER_SET_WAKEENABLED
: u32 = 1u32;
622 #[doc = "*Required features: 'Win32_System_Power'*"]
623 pub struct DEVICE_NOTIFY_SUBSCRIBE_PARAMETERS
{
624 pub Callback
: PDEVICE_NOTIFY_CALLBACK_ROUTINE
,
625 pub Context
: *mut ::core
::ffi
::c_void
,
627 impl ::core
::marker
::Copy
for DEVICE_NOTIFY_SUBSCRIBE_PARAMETERS {}
628 impl ::core
::clone
::Clone
for DEVICE_NOTIFY_SUBSCRIBE_PARAMETERS
{
629 fn clone(&self) -> Self {
633 #[doc = "*Required features: 'Win32_System_Power'*"]
634 pub type DEVICE_POWER_STATE
= i32;
635 #[doc = "*Required features: 'Win32_System_Power'*"]
636 pub const PowerDeviceUnspecified
: DEVICE_POWER_STATE
= 0i32;
637 #[doc = "*Required features: 'Win32_System_Power'*"]
638 pub const PowerDeviceD0
: DEVICE_POWER_STATE
= 1i32;
639 #[doc = "*Required features: 'Win32_System_Power'*"]
640 pub const PowerDeviceD1
: DEVICE_POWER_STATE
= 2i32;
641 #[doc = "*Required features: 'Win32_System_Power'*"]
642 pub const PowerDeviceD2
: DEVICE_POWER_STATE
= 3i32;
643 #[doc = "*Required features: 'Win32_System_Power'*"]
644 pub const PowerDeviceD3
: DEVICE_POWER_STATE
= 4i32;
645 #[doc = "*Required features: 'Win32_System_Power'*"]
646 pub const PowerDeviceMaximum
: DEVICE_POWER_STATE
= 5i32;
647 #[doc = "*Required features: 'Win32_System_Power'*"]
648 pub type EFFECTIVE_POWER_MODE
= i32;
649 #[doc = "*Required features: 'Win32_System_Power'*"]
650 pub const EffectivePowerModeBatterySaver
: EFFECTIVE_POWER_MODE
= 0i32;
651 #[doc = "*Required features: 'Win32_System_Power'*"]
652 pub const EffectivePowerModeBetterBattery
: EFFECTIVE_POWER_MODE
= 1i32;
653 #[doc = "*Required features: 'Win32_System_Power'*"]
654 pub const EffectivePowerModeBalanced
: EFFECTIVE_POWER_MODE
= 2i32;
655 #[doc = "*Required features: 'Win32_System_Power'*"]
656 pub const EffectivePowerModeHighPerformance
: EFFECTIVE_POWER_MODE
= 3i32;
657 #[doc = "*Required features: 'Win32_System_Power'*"]
658 pub const EffectivePowerModeMaxPerformance
: EFFECTIVE_POWER_MODE
= 4i32;
659 #[doc = "*Required features: 'Win32_System_Power'*"]
660 pub const EffectivePowerModeGameMode
: EFFECTIVE_POWER_MODE
= 5i32;
661 #[doc = "*Required features: 'Win32_System_Power'*"]
662 pub const EffectivePowerModeMixedReality
: EFFECTIVE_POWER_MODE
= 6i32;
663 #[doc = "*Required features: 'Win32_System_Power'*"]
664 pub type EFFECTIVE_POWER_MODE_CALLBACK
= ::core
::option
::Option
<unsafe extern "system" fn(mode
: EFFECTIVE_POWER_MODE
, context
: *const ::core
::ffi
::c_void
)>;
665 #[doc = "*Required features: 'Win32_System_Power'*"]
666 pub const EFFECTIVE_POWER_MODE_V1
: u32 = 1u32;
667 #[doc = "*Required features: 'Win32_System_Power'*"]
668 pub const EFFECTIVE_POWER_MODE_V2
: u32 = 2u32;
670 #[doc = "*Required features: 'Win32_System_Power'*"]
671 pub struct EMI_CHANNEL_MEASUREMENT_DATA
{
672 pub AbsoluteEnergy
: u64,
673 pub AbsoluteTime
: u64,
675 impl ::core
::marker
::Copy
for EMI_CHANNEL_MEASUREMENT_DATA {}
676 impl ::core
::clone
::Clone
for EMI_CHANNEL_MEASUREMENT_DATA
{
677 fn clone(&self) -> Self {
682 #[doc = "*Required features: 'Win32_System_Power'*"]
683 pub struct EMI_CHANNEL_V2
{
684 pub MeasurementUnit
: EMI_MEASUREMENT_UNIT
,
685 pub ChannelNameSize
: u16,
686 pub ChannelName
: [u16; 1],
688 impl ::core
::marker
::Copy
for EMI_CHANNEL_V2 {}
689 impl ::core
::clone
::Clone
for EMI_CHANNEL_V2
{
690 fn clone(&self) -> Self {
695 #[doc = "*Required features: 'Win32_System_Power'*"]
696 pub struct EMI_MEASUREMENT_DATA_V2
{
697 pub ChannelData
: [EMI_CHANNEL_MEASUREMENT_DATA
; 1],
699 impl ::core
::marker
::Copy
for EMI_MEASUREMENT_DATA_V2 {}
700 impl ::core
::clone
::Clone
for EMI_MEASUREMENT_DATA_V2
{
701 fn clone(&self) -> Self {
705 #[doc = "*Required features: 'Win32_System_Power'*"]
706 pub type EMI_MEASUREMENT_UNIT
= i32;
707 #[doc = "*Required features: 'Win32_System_Power'*"]
708 pub const EmiMeasurementUnitPicowattHours
: EMI_MEASUREMENT_UNIT
= 0i32;
710 #[doc = "*Required features: 'Win32_System_Power'*"]
711 pub struct EMI_METADATA_SIZE
{
712 pub MetadataSize
: u32,
714 impl ::core
::marker
::Copy
for EMI_METADATA_SIZE {}
715 impl ::core
::clone
::Clone
for EMI_METADATA_SIZE
{
716 fn clone(&self) -> Self {
721 #[doc = "*Required features: 'Win32_System_Power'*"]
722 pub struct EMI_METADATA_V1
{
723 pub MeasurementUnit
: EMI_MEASUREMENT_UNIT
,
724 pub HardwareOEM
: [u16; 16],
725 pub HardwareModel
: [u16; 16],
726 pub HardwareRevision
: u16,
727 pub MeteredHardwareNameSize
: u16,
728 pub MeteredHardwareName
: [u16; 1],
730 impl ::core
::marker
::Copy
for EMI_METADATA_V1 {}
731 impl ::core
::clone
::Clone
for EMI_METADATA_V1
{
732 fn clone(&self) -> Self {
737 #[doc = "*Required features: 'Win32_System_Power'*"]
738 pub struct EMI_METADATA_V2
{
739 pub HardwareOEM
: [u16; 16],
740 pub HardwareModel
: [u16; 16],
741 pub HardwareRevision
: u16,
742 pub ChannelCount
: u16,
743 pub Channels
: [EMI_CHANNEL_V2
; 1],
745 impl ::core
::marker
::Copy
for EMI_METADATA_V2 {}
746 impl ::core
::clone
::Clone
for EMI_METADATA_V2
{
747 fn clone(&self) -> Self {
751 #[doc = "*Required features: 'Win32_System_Power'*"]
752 pub const EMI_NAME_MAX
: u32 = 16u32;
754 #[doc = "*Required features: 'Win32_System_Power'*"]
755 pub struct EMI_VERSION
{
758 impl ::core
::marker
::Copy
for EMI_VERSION {}
759 impl ::core
::clone
::Clone
for EMI_VERSION
{
760 fn clone(&self) -> Self {
764 #[doc = "*Required features: 'Win32_System_Power'*"]
765 pub const EMI_VERSION_V1
: u32 = 1u32;
766 #[doc = "*Required features: 'Win32_System_Power'*"]
767 pub const EMI_VERSION_V2
: u32 = 2u32;
768 #[doc = "*Required features: 'Win32_System_Power'*"]
769 pub type EXECUTION_STATE
= u32;
770 #[doc = "*Required features: 'Win32_System_Power'*"]
771 pub const ES_AWAYMODE_REQUIRED
: EXECUTION_STATE
= 64u32;
772 #[doc = "*Required features: 'Win32_System_Power'*"]
773 pub const ES_CONTINUOUS
: EXECUTION_STATE
= 2147483648u32;
774 #[doc = "*Required features: 'Win32_System_Power'*"]
775 pub const ES_DISPLAY_REQUIRED
: EXECUTION_STATE
= 2u32;
776 #[doc = "*Required features: 'Win32_System_Power'*"]
777 pub const ES_SYSTEM_REQUIRED
: EXECUTION_STATE
= 1u32;
778 #[doc = "*Required features: 'Win32_System_Power'*"]
779 pub const ES_USER_PRESENT
: EXECUTION_STATE
= 4u32;
780 #[doc = "*Required features: 'Win32_System_Power'*"]
781 pub const EnableMultiBatteryDisplay
: u32 = 2u32;
782 #[doc = "*Required features: 'Win32_System_Power'*"]
783 pub const EnablePasswordLogon
: u32 = 4u32;
784 #[doc = "*Required features: 'Win32_System_Power'*"]
785 pub const EnableSysTrayBatteryMeter
: u32 = 1u32;
786 #[doc = "*Required features: 'Win32_System_Power'*"]
787 pub const EnableVideoDimDisplay
: u32 = 16u32;
788 #[doc = "*Required features: 'Win32_System_Power'*"]
789 pub const EnableWakeOnRing
: u32 = 8u32;
791 #[doc = "*Required features: 'Win32_System_Power'*"]
792 pub struct GLOBAL_MACHINE_POWER_POLICY
{
794 pub LidOpenWakeAc
: SYSTEM_POWER_STATE
,
795 pub LidOpenWakeDc
: SYSTEM_POWER_STATE
,
796 pub BroadcastCapacityResolution
: u32,
798 impl ::core
::marker
::Copy
for GLOBAL_MACHINE_POWER_POLICY {}
799 impl ::core
::clone
::Clone
for GLOBAL_MACHINE_POWER_POLICY
{
800 fn clone(&self) -> Self {
805 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
806 #[cfg(feature = "Win32_Foundation")]
807 pub struct GLOBAL_POWER_POLICY
{
808 pub user
: GLOBAL_USER_POWER_POLICY
,
809 pub mach
: GLOBAL_MACHINE_POWER_POLICY
,
811 #[cfg(feature = "Win32_Foundation")]
812 impl ::core
::marker
::Copy
for GLOBAL_POWER_POLICY {}
813 #[cfg(feature = "Win32_Foundation")]
814 impl ::core
::clone
::Clone
for GLOBAL_POWER_POLICY
{
815 fn clone(&self) -> Self {
820 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
821 #[cfg(feature = "Win32_Foundation")]
822 pub struct GLOBAL_USER_POWER_POLICY
{
824 pub PowerButtonAc
: POWER_ACTION_POLICY
,
825 pub PowerButtonDc
: POWER_ACTION_POLICY
,
826 pub SleepButtonAc
: POWER_ACTION_POLICY
,
827 pub SleepButtonDc
: POWER_ACTION_POLICY
,
828 pub LidCloseAc
: POWER_ACTION_POLICY
,
829 pub LidCloseDc
: POWER_ACTION_POLICY
,
830 pub DischargePolicy
: [SYSTEM_POWER_LEVEL
; 4],
831 pub GlobalFlags
: u32,
833 #[cfg(feature = "Win32_Foundation")]
834 impl ::core
::marker
::Copy
for GLOBAL_USER_POWER_POLICY {}
835 #[cfg(feature = "Win32_Foundation")]
836 impl ::core
::clone
::Clone
for GLOBAL_USER_POWER_POLICY
{
837 fn clone(&self) -> Self {
841 pub const GUID_CLASS_INPUT
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID { data1: 1293833650, data2: 61807, data3: 4559, data4: [136, 203, 0, 17, 17, 0, 0, 48] }
;
842 pub const GUID_DEVICE_ACPI_TIME
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID { data1: 2549718006, data2: 17559, data3: 20248, data4: [187, 34, 75, 159, 178, 251, 239, 156] }
;
843 pub const GUID_DEVICE_APPLICATIONLAUNCH_BUTTON
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID { data1: 1654085870, data2: 39022, data3: 19870, data4: [142, 71, 222, 39, 248, 171, 5, 77] }
;
844 pub const GUID_DEVICE_BATTERY
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID { data1: 1919098452, data2: 30884, data3: 4560, data4: [188, 247, 0, 170, 0, 183, 179, 42] }
;
845 pub const GUID_DEVICE_ENERGY_METER
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID { data1: 1170047812, data2: 32470, data3: 18895, data4: [164, 64, 194, 118, 201, 51, 176, 83] }
;
846 pub const GUID_DEVICE_FAN
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID { data1: 99406141, data2: 33242, data3: 18986, data4: [138, 76, 82, 79, 35, 221, 77, 201] }
;
847 pub const GUID_DEVICE_LID
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID { data1: 1257913682, data2: 29863, data3: 4560, data4: [190, 94, 0, 160, 201, 6, 40, 87] }
;
848 pub const GUID_DEVICE_MEMORY
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID { data1: 1070657597, data2: 37600, data3: 17915, data4: [183, 92, 94, 216, 255, 176, 16, 33] }
;
849 pub const GUID_DEVICE_MESSAGE_INDICATOR
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID { data1: 3444089701, data2: 64148, data3: 19682, data4: [162, 50, 161, 183, 100, 229, 216, 180] }
;
850 pub const GUID_DEVICE_PROCESSOR
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID { data1: 2549799696, data2: 20019, data3: 16558, data4: [53, 156, 139, 239, 2, 157, 189, 208] }
;
851 pub const GUID_DEVICE_SYS_BUTTON
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID { data1: 1257913683, data2: 29863, data3: 4560, data4: [190, 94, 0, 160, 201, 6, 40, 87] }
;
852 pub const GUID_DEVICE_THERMAL_ZONE
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID { data1: 1257913681, data2: 29863, data3: 4560, data4: [190, 94, 0, 160, 201, 6, 40, 87] }
;
853 pub const GUID_DEVINTERFACE_THERMAL_COOLING
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID { data1: 3689166653, data2: 15489, data3: 16587, data4: [172, 228, 224, 229, 208, 95, 12, 159] }
;
854 pub const GUID_DEVINTERFACE_THERMAL_MANAGER
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID { data1: 2457780371, data2: 27044, data3: 19392, data4: [189, 2, 113, 22, 100, 113, 68, 99] }
;
855 pub type HPOWERNOTIFY
= isize;
856 #[doc = "*Required features: 'Win32_System_Power'*"]
857 pub const IOCTL_ACPI_GET_REAL_TIME
: u32 = 2703888u32;
858 #[doc = "*Required features: 'Win32_System_Power'*"]
859 pub const IOCTL_ACPI_SET_REAL_TIME
: u32 = 2720276u32;
860 #[doc = "*Required features: 'Win32_System_Power'*"]
861 pub const IOCTL_BATTERY_CHARGING_SOURCE_CHANGE
: u32 = 2703440u32;
862 #[doc = "*Required features: 'Win32_System_Power'*"]
863 pub const IOCTL_BATTERY_QUERY_INFORMATION
: u32 = 2703428u32;
864 #[doc = "*Required features: 'Win32_System_Power'*"]
865 pub const IOCTL_BATTERY_QUERY_STATUS
: u32 = 2703436u32;
866 #[doc = "*Required features: 'Win32_System_Power'*"]
867 pub const IOCTL_BATTERY_QUERY_TAG
: u32 = 2703424u32;
868 #[doc = "*Required features: 'Win32_System_Power'*"]
869 pub const IOCTL_BATTERY_SET_INFORMATION
: u32 = 2719816u32;
870 #[doc = "*Required features: 'Win32_System_Power'*"]
871 pub const IOCTL_EMI_GET_MEASUREMENT
: u32 = 2244620u32;
872 #[doc = "*Required features: 'Win32_System_Power'*"]
873 pub const IOCTL_EMI_GET_METADATA
: u32 = 2244616u32;
874 #[doc = "*Required features: 'Win32_System_Power'*"]
875 pub const IOCTL_EMI_GET_METADATA_SIZE
: u32 = 2244612u32;
876 #[doc = "*Required features: 'Win32_System_Power'*"]
877 pub const IOCTL_EMI_GET_VERSION
: u32 = 2244608u32;
878 #[doc = "*Required features: 'Win32_System_Power'*"]
879 pub const IOCTL_GET_PROCESSOR_OBJ_INFO
: u32 = 2703744u32;
880 #[doc = "*Required features: 'Win32_System_Power'*"]
881 pub const IOCTL_GET_SYS_BUTTON_CAPS
: u32 = 2703680u32;
882 #[doc = "*Required features: 'Win32_System_Power'*"]
883 pub const IOCTL_GET_SYS_BUTTON_EVENT
: u32 = 2703684u32;
884 #[doc = "*Required features: 'Win32_System_Power'*"]
885 pub const IOCTL_GET_WAKE_ALARM_POLICY
: u32 = 2736652u32;
886 #[doc = "*Required features: 'Win32_System_Power'*"]
887 pub const IOCTL_GET_WAKE_ALARM_SYSTEM_POWERSTATE
: u32 = 2703896u32;
888 #[doc = "*Required features: 'Win32_System_Power'*"]
889 pub const IOCTL_GET_WAKE_ALARM_VALUE
: u32 = 2736648u32;
890 #[doc = "*Required features: 'Win32_System_Power'*"]
891 pub const IOCTL_NOTIFY_SWITCH_EVENT
: u32 = 2703616u32;
892 #[doc = "*Required features: 'Win32_System_Power'*"]
893 pub const IOCTL_QUERY_LID
: u32 = 2703552u32;
894 #[doc = "*Required features: 'Win32_System_Power'*"]
895 pub const IOCTL_RUN_ACTIVE_COOLING_METHOD
: u32 = 2719880u32;
896 #[doc = "*Required features: 'Win32_System_Power'*"]
897 pub const IOCTL_SET_SYS_MESSAGE_INDICATOR
: u32 = 2720192u32;
898 #[doc = "*Required features: 'Win32_System_Power'*"]
899 pub const IOCTL_SET_WAKE_ALARM_POLICY
: u32 = 2720260u32;
900 #[doc = "*Required features: 'Win32_System_Power'*"]
901 pub const IOCTL_SET_WAKE_ALARM_VALUE
: u32 = 2720256u32;
902 #[doc = "*Required features: 'Win32_System_Power'*"]
903 pub const IOCTL_THERMAL_QUERY_INFORMATION
: u32 = 2703488u32;
904 #[doc = "*Required features: 'Win32_System_Power'*"]
905 pub const IOCTL_THERMAL_READ_POLICY
: u32 = 2703508u32;
906 #[doc = "*Required features: 'Win32_System_Power'*"]
907 pub const IOCTL_THERMAL_READ_TEMPERATURE
: u32 = 2703504u32;
908 #[doc = "*Required features: 'Win32_System_Power'*"]
909 pub const IOCTL_THERMAL_SET_COOLING_POLICY
: u32 = 2719876u32;
910 #[doc = "*Required features: 'Win32_System_Power'*"]
911 pub const IOCTL_THERMAL_SET_PASSIVE_LIMIT
: u32 = 2719884u32;
912 #[doc = "*Required features: 'Win32_System_Power'*"]
913 pub type LATENCY_TIME
= i32;
914 #[doc = "*Required features: 'Win32_System_Power'*"]
915 pub const LT_DONT_CARE
: LATENCY_TIME
= 0i32;
916 #[doc = "*Required features: 'Win32_System_Power'*"]
917 pub const LT_LOWEST_LATENCY
: LATENCY_TIME
= 1i32;
919 #[doc = "*Required features: 'Win32_System_Power'*"]
920 pub struct MACHINE_POWER_POLICY
{
922 pub MinSleepAc
: SYSTEM_POWER_STATE
,
923 pub MinSleepDc
: SYSTEM_POWER_STATE
,
924 pub ReducedLatencySleepAc
: SYSTEM_POWER_STATE
,
925 pub ReducedLatencySleepDc
: SYSTEM_POWER_STATE
,
926 pub DozeTimeoutAc
: u32,
927 pub DozeTimeoutDc
: u32,
928 pub DozeS4TimeoutAc
: u32,
929 pub DozeS4TimeoutDc
: u32,
930 pub MinThrottleAc
: u8,
931 pub MinThrottleDc
: u8,
933 pub OverThrottledAc
: POWER_ACTION_POLICY
,
934 pub OverThrottledDc
: POWER_ACTION_POLICY
,
936 impl ::core
::marker
::Copy
for MACHINE_POWER_POLICY {}
937 impl ::core
::clone
::Clone
for MACHINE_POWER_POLICY
{
938 fn clone(&self) -> Self {
943 #[doc = "*Required features: 'Win32_System_Power'*"]
944 pub struct MACHINE_PROCESSOR_POWER_POLICY
{
946 pub ProcessorPolicyAc
: PROCESSOR_POWER_POLICY
,
947 pub ProcessorPolicyDc
: PROCESSOR_POWER_POLICY
,
949 impl ::core
::marker
::Copy
for MACHINE_PROCESSOR_POWER_POLICY {}
950 impl ::core
::clone
::Clone
for MACHINE_PROCESSOR_POWER_POLICY
{
951 fn clone(&self) -> Self {
955 #[doc = "*Required features: 'Win32_System_Power'*"]
956 pub const MAX_ACTIVE_COOLING_LEVELS
: u32 = 10u32;
957 #[doc = "*Required features: 'Win32_System_Power'*"]
958 pub const MAX_BATTERY_STRING_SIZE
: u32 = 128u32;
959 #[doc = "*Required features: 'Win32_System_Power'*"]
960 pub const PASSIVE_COOLING
: u32 = 1u32;
961 #[doc = "*Required features: 'Win32_System_Power'*"]
962 pub const PDCAP_S0_SUPPORTED
: u32 = 65536u32;
963 #[doc = "*Required features: 'Win32_System_Power'*"]
964 pub const PDCAP_S1_SUPPORTED
: u32 = 131072u32;
965 #[doc = "*Required features: 'Win32_System_Power'*"]
966 pub const PDCAP_S2_SUPPORTED
: u32 = 262144u32;
967 #[doc = "*Required features: 'Win32_System_Power'*"]
968 pub const PDCAP_S3_SUPPORTED
: u32 = 524288u32;
969 #[doc = "*Required features: 'Win32_System_Power'*"]
970 pub const PDCAP_S4_SUPPORTED
: u32 = 16777216u32;
971 #[doc = "*Required features: 'Win32_System_Power'*"]
972 pub const PDCAP_S5_SUPPORTED
: u32 = 33554432u32;
973 #[doc = "*Required features: 'Win32_System_Power'*"]
974 pub const PDCAP_WAKE_FROM_S0_SUPPORTED
: u32 = 1048576u32;
975 #[doc = "*Required features: 'Win32_System_Power'*"]
976 pub const PDCAP_WAKE_FROM_S1_SUPPORTED
: u32 = 2097152u32;
977 #[doc = "*Required features: 'Win32_System_Power'*"]
978 pub const PDCAP_WAKE_FROM_S2_SUPPORTED
: u32 = 4194304u32;
979 #[doc = "*Required features: 'Win32_System_Power'*"]
980 pub const PDCAP_WAKE_FROM_S3_SUPPORTED
: u32 = 8388608u32;
981 #[doc = "*Required features: 'Win32_System_Power'*"]
982 pub type PDEVICE_NOTIFY_CALLBACK_ROUTINE
= ::core
::option
::Option
<unsafe extern "system" fn(context
: *const ::core
::ffi
::c_void
, r
#type: u32, setting: *const ::core::ffi::c_void) -> u32>;
984 #[doc = "*Required features: 'Win32_System_Power'*"]
985 pub struct POWERBROADCAST_SETTING
{
986 pub PowerSetting
: ::windows_sys
::core
::GUID
,
990 impl ::core
::marker
::Copy
for POWERBROADCAST_SETTING {}
991 impl ::core
::clone
::Clone
for POWERBROADCAST_SETTING
{
992 fn clone(&self) -> Self {
996 #[doc = "*Required features: 'Win32_System_Power'*"]
997 pub type POWER_ACTION
= i32;
998 #[doc = "*Required features: 'Win32_System_Power'*"]
999 pub const PowerActionNone
: POWER_ACTION
= 0i32;
1000 #[doc = "*Required features: 'Win32_System_Power'*"]
1001 pub const PowerActionReserved
: POWER_ACTION
= 1i32;
1002 #[doc = "*Required features: 'Win32_System_Power'*"]
1003 pub const PowerActionSleep
: POWER_ACTION
= 2i32;
1004 #[doc = "*Required features: 'Win32_System_Power'*"]
1005 pub const PowerActionHibernate
: POWER_ACTION
= 3i32;
1006 #[doc = "*Required features: 'Win32_System_Power'*"]
1007 pub const PowerActionShutdown
: POWER_ACTION
= 4i32;
1008 #[doc = "*Required features: 'Win32_System_Power'*"]
1009 pub const PowerActionShutdownReset
: POWER_ACTION
= 5i32;
1010 #[doc = "*Required features: 'Win32_System_Power'*"]
1011 pub const PowerActionShutdownOff
: POWER_ACTION
= 6i32;
1012 #[doc = "*Required features: 'Win32_System_Power'*"]
1013 pub const PowerActionWarmEject
: POWER_ACTION
= 7i32;
1014 #[doc = "*Required features: 'Win32_System_Power'*"]
1015 pub const PowerActionDisplayOff
: POWER_ACTION
= 8i32;
1017 #[doc = "*Required features: 'Win32_System_Power'*"]
1018 pub struct POWER_ACTION_POLICY
{
1019 pub Action
: POWER_ACTION
,
1021 pub EventCode
: POWER_ACTION_POLICY_EVENT_CODE
,
1023 impl ::core
::marker
::Copy
for POWER_ACTION_POLICY {}
1024 impl ::core
::clone
::Clone
for POWER_ACTION_POLICY
{
1025 fn clone(&self) -> Self {
1029 #[doc = "*Required features: 'Win32_System_Power'*"]
1030 pub type POWER_ACTION_POLICY_EVENT_CODE
= u32;
1031 #[doc = "*Required features: 'Win32_System_Power'*"]
1032 pub const POWER_FORCE_TRIGGER_RESET
: POWER_ACTION_POLICY_EVENT_CODE
= 2147483648u32;
1033 #[doc = "*Required features: 'Win32_System_Power'*"]
1034 pub const POWER_LEVEL_USER_NOTIFY_EXEC
: POWER_ACTION_POLICY_EVENT_CODE
= 4u32;
1035 #[doc = "*Required features: 'Win32_System_Power'*"]
1036 pub const POWER_LEVEL_USER_NOTIFY_SOUND
: POWER_ACTION_POLICY_EVENT_CODE
= 2u32;
1037 #[doc = "*Required features: 'Win32_System_Power'*"]
1038 pub const POWER_LEVEL_USER_NOTIFY_TEXT
: POWER_ACTION_POLICY_EVENT_CODE
= 1u32;
1039 #[doc = "*Required features: 'Win32_System_Power'*"]
1040 pub const POWER_USER_NOTIFY_BUTTON
: POWER_ACTION_POLICY_EVENT_CODE
= 8u32;
1041 #[doc = "*Required features: 'Win32_System_Power'*"]
1042 pub const POWER_USER_NOTIFY_SHUTDOWN
: POWER_ACTION_POLICY_EVENT_CODE
= 16u32;
1043 #[doc = "*Required features: 'Win32_System_Power'*"]
1044 pub const POWER_ATTRIBUTE_HIDE
: u32 = 1u32;
1045 #[doc = "*Required features: 'Win32_System_Power'*"]
1046 pub const POWER_ATTRIBUTE_SHOW_AOAC
: u32 = 2u32;
1047 #[doc = "*Required features: 'Win32_System_Power'*"]
1048 pub type POWER_DATA_ACCESSOR
= i32;
1049 #[doc = "*Required features: 'Win32_System_Power'*"]
1050 pub const ACCESS_AC_POWER_SETTING_INDEX
: POWER_DATA_ACCESSOR
= 0i32;
1051 #[doc = "*Required features: 'Win32_System_Power'*"]
1052 pub const ACCESS_DC_POWER_SETTING_INDEX
: POWER_DATA_ACCESSOR
= 1i32;
1053 #[doc = "*Required features: 'Win32_System_Power'*"]
1054 pub const ACCESS_FRIENDLY_NAME
: POWER_DATA_ACCESSOR
= 2i32;
1055 #[doc = "*Required features: 'Win32_System_Power'*"]
1056 pub const ACCESS_DESCRIPTION
: POWER_DATA_ACCESSOR
= 3i32;
1057 #[doc = "*Required features: 'Win32_System_Power'*"]
1058 pub const ACCESS_POSSIBLE_POWER_SETTING
: POWER_DATA_ACCESSOR
= 4i32;
1059 #[doc = "*Required features: 'Win32_System_Power'*"]
1060 pub const ACCESS_POSSIBLE_POWER_SETTING_FRIENDLY_NAME
: POWER_DATA_ACCESSOR
= 5i32;
1061 #[doc = "*Required features: 'Win32_System_Power'*"]
1062 pub const ACCESS_POSSIBLE_POWER_SETTING_DESCRIPTION
: POWER_DATA_ACCESSOR
= 6i32;
1063 #[doc = "*Required features: 'Win32_System_Power'*"]
1064 pub const ACCESS_DEFAULT_AC_POWER_SETTING
: POWER_DATA_ACCESSOR
= 7i32;
1065 #[doc = "*Required features: 'Win32_System_Power'*"]
1066 pub const ACCESS_DEFAULT_DC_POWER_SETTING
: POWER_DATA_ACCESSOR
= 8i32;
1067 #[doc = "*Required features: 'Win32_System_Power'*"]
1068 pub const ACCESS_POSSIBLE_VALUE_MIN
: POWER_DATA_ACCESSOR
= 9i32;
1069 #[doc = "*Required features: 'Win32_System_Power'*"]
1070 pub const ACCESS_POSSIBLE_VALUE_MAX
: POWER_DATA_ACCESSOR
= 10i32;
1071 #[doc = "*Required features: 'Win32_System_Power'*"]
1072 pub const ACCESS_POSSIBLE_VALUE_INCREMENT
: POWER_DATA_ACCESSOR
= 11i32;
1073 #[doc = "*Required features: 'Win32_System_Power'*"]
1074 pub const ACCESS_POSSIBLE_VALUE_UNITS
: POWER_DATA_ACCESSOR
= 12i32;
1075 #[doc = "*Required features: 'Win32_System_Power'*"]
1076 pub const ACCESS_ICON_RESOURCE
: POWER_DATA_ACCESSOR
= 13i32;
1077 #[doc = "*Required features: 'Win32_System_Power'*"]
1078 pub const ACCESS_DEFAULT_SECURITY_DESCRIPTOR
: POWER_DATA_ACCESSOR
= 14i32;
1079 #[doc = "*Required features: 'Win32_System_Power'*"]
1080 pub const ACCESS_ATTRIBUTES
: POWER_DATA_ACCESSOR
= 15i32;
1081 #[doc = "*Required features: 'Win32_System_Power'*"]
1082 pub const ACCESS_SCHEME
: POWER_DATA_ACCESSOR
= 16i32;
1083 #[doc = "*Required features: 'Win32_System_Power'*"]
1084 pub const ACCESS_SUBGROUP
: POWER_DATA_ACCESSOR
= 17i32;
1085 #[doc = "*Required features: 'Win32_System_Power'*"]
1086 pub const ACCESS_INDIVIDUAL_SETTING
: POWER_DATA_ACCESSOR
= 18i32;
1087 #[doc = "*Required features: 'Win32_System_Power'*"]
1088 pub const ACCESS_ACTIVE_SCHEME
: POWER_DATA_ACCESSOR
= 19i32;
1089 #[doc = "*Required features: 'Win32_System_Power'*"]
1090 pub const ACCESS_CREATE_SCHEME
: POWER_DATA_ACCESSOR
= 20i32;
1091 #[doc = "*Required features: 'Win32_System_Power'*"]
1092 pub const ACCESS_AC_POWER_SETTING_MAX
: POWER_DATA_ACCESSOR
= 21i32;
1093 #[doc = "*Required features: 'Win32_System_Power'*"]
1094 pub const ACCESS_DC_POWER_SETTING_MAX
: POWER_DATA_ACCESSOR
= 22i32;
1095 #[doc = "*Required features: 'Win32_System_Power'*"]
1096 pub const ACCESS_AC_POWER_SETTING_MIN
: POWER_DATA_ACCESSOR
= 23i32;
1097 #[doc = "*Required features: 'Win32_System_Power'*"]
1098 pub const ACCESS_DC_POWER_SETTING_MIN
: POWER_DATA_ACCESSOR
= 24i32;
1099 #[doc = "*Required features: 'Win32_System_Power'*"]
1100 pub const ACCESS_PROFILE
: POWER_DATA_ACCESSOR
= 25i32;
1101 #[doc = "*Required features: 'Win32_System_Power'*"]
1102 pub const ACCESS_OVERLAY_SCHEME
: POWER_DATA_ACCESSOR
= 26i32;
1103 #[doc = "*Required features: 'Win32_System_Power'*"]
1104 pub const ACCESS_ACTIVE_OVERLAY_SCHEME
: POWER_DATA_ACCESSOR
= 27i32;
1105 #[doc = "*Required features: 'Win32_System_Power'*"]
1106 pub type POWER_INFORMATION_LEVEL
= i32;
1107 #[doc = "*Required features: 'Win32_System_Power'*"]
1108 pub const SystemPowerPolicyAc
: POWER_INFORMATION_LEVEL
= 0i32;
1109 #[doc = "*Required features: 'Win32_System_Power'*"]
1110 pub const SystemPowerPolicyDc
: POWER_INFORMATION_LEVEL
= 1i32;
1111 #[doc = "*Required features: 'Win32_System_Power'*"]
1112 pub const VerifySystemPolicyAc
: POWER_INFORMATION_LEVEL
= 2i32;
1113 #[doc = "*Required features: 'Win32_System_Power'*"]
1114 pub const VerifySystemPolicyDc
: POWER_INFORMATION_LEVEL
= 3i32;
1115 #[doc = "*Required features: 'Win32_System_Power'*"]
1116 pub const SystemPowerCapabilities
: POWER_INFORMATION_LEVEL
= 4i32;
1117 #[doc = "*Required features: 'Win32_System_Power'*"]
1118 pub const SystemBatteryState
: POWER_INFORMATION_LEVEL
= 5i32;
1119 #[doc = "*Required features: 'Win32_System_Power'*"]
1120 pub const SystemPowerStateHandler
: POWER_INFORMATION_LEVEL
= 6i32;
1121 #[doc = "*Required features: 'Win32_System_Power'*"]
1122 pub const ProcessorStateHandler
: POWER_INFORMATION_LEVEL
= 7i32;
1123 #[doc = "*Required features: 'Win32_System_Power'*"]
1124 pub const SystemPowerPolicyCurrent
: POWER_INFORMATION_LEVEL
= 8i32;
1125 #[doc = "*Required features: 'Win32_System_Power'*"]
1126 pub const AdministratorPowerPolicy
: POWER_INFORMATION_LEVEL
= 9i32;
1127 #[doc = "*Required features: 'Win32_System_Power'*"]
1128 pub const SystemReserveHiberFile
: POWER_INFORMATION_LEVEL
= 10i32;
1129 #[doc = "*Required features: 'Win32_System_Power'*"]
1130 pub const ProcessorInformation
: POWER_INFORMATION_LEVEL
= 11i32;
1131 #[doc = "*Required features: 'Win32_System_Power'*"]
1132 pub const SystemPowerInformation
: POWER_INFORMATION_LEVEL
= 12i32;
1133 #[doc = "*Required features: 'Win32_System_Power'*"]
1134 pub const ProcessorStateHandler2
: POWER_INFORMATION_LEVEL
= 13i32;
1135 #[doc = "*Required features: 'Win32_System_Power'*"]
1136 pub const LastWakeTime
: POWER_INFORMATION_LEVEL
= 14i32;
1137 #[doc = "*Required features: 'Win32_System_Power'*"]
1138 pub const LastSleepTime
: POWER_INFORMATION_LEVEL
= 15i32;
1139 #[doc = "*Required features: 'Win32_System_Power'*"]
1140 pub const SystemExecutionState
: POWER_INFORMATION_LEVEL
= 16i32;
1141 #[doc = "*Required features: 'Win32_System_Power'*"]
1142 pub const SystemPowerStateNotifyHandler
: POWER_INFORMATION_LEVEL
= 17i32;
1143 #[doc = "*Required features: 'Win32_System_Power'*"]
1144 pub const ProcessorPowerPolicyAc
: POWER_INFORMATION_LEVEL
= 18i32;
1145 #[doc = "*Required features: 'Win32_System_Power'*"]
1146 pub const ProcessorPowerPolicyDc
: POWER_INFORMATION_LEVEL
= 19i32;
1147 #[doc = "*Required features: 'Win32_System_Power'*"]
1148 pub const VerifyProcessorPowerPolicyAc
: POWER_INFORMATION_LEVEL
= 20i32;
1149 #[doc = "*Required features: 'Win32_System_Power'*"]
1150 pub const VerifyProcessorPowerPolicyDc
: POWER_INFORMATION_LEVEL
= 21i32;
1151 #[doc = "*Required features: 'Win32_System_Power'*"]
1152 pub const ProcessorPowerPolicyCurrent
: POWER_INFORMATION_LEVEL
= 22i32;
1153 #[doc = "*Required features: 'Win32_System_Power'*"]
1154 pub const SystemPowerStateLogging
: POWER_INFORMATION_LEVEL
= 23i32;
1155 #[doc = "*Required features: 'Win32_System_Power'*"]
1156 pub const SystemPowerLoggingEntry
: POWER_INFORMATION_LEVEL
= 24i32;
1157 #[doc = "*Required features: 'Win32_System_Power'*"]
1158 pub const SetPowerSettingValue
: POWER_INFORMATION_LEVEL
= 25i32;
1159 #[doc = "*Required features: 'Win32_System_Power'*"]
1160 pub const NotifyUserPowerSetting
: POWER_INFORMATION_LEVEL
= 26i32;
1161 #[doc = "*Required features: 'Win32_System_Power'*"]
1162 pub const PowerInformationLevelUnused0
: POWER_INFORMATION_LEVEL
= 27i32;
1163 #[doc = "*Required features: 'Win32_System_Power'*"]
1164 pub const SystemMonitorHiberBootPowerOff
: POWER_INFORMATION_LEVEL
= 28i32;
1165 #[doc = "*Required features: 'Win32_System_Power'*"]
1166 pub const SystemVideoState
: POWER_INFORMATION_LEVEL
= 29i32;
1167 #[doc = "*Required features: 'Win32_System_Power'*"]
1168 pub const TraceApplicationPowerMessage
: POWER_INFORMATION_LEVEL
= 30i32;
1169 #[doc = "*Required features: 'Win32_System_Power'*"]
1170 pub const TraceApplicationPowerMessageEnd
: POWER_INFORMATION_LEVEL
= 31i32;
1171 #[doc = "*Required features: 'Win32_System_Power'*"]
1172 pub const ProcessorPerfStates
: POWER_INFORMATION_LEVEL
= 32i32;
1173 #[doc = "*Required features: 'Win32_System_Power'*"]
1174 pub const ProcessorIdleStates
: POWER_INFORMATION_LEVEL
= 33i32;
1175 #[doc = "*Required features: 'Win32_System_Power'*"]
1176 pub const ProcessorCap
: POWER_INFORMATION_LEVEL
= 34i32;
1177 #[doc = "*Required features: 'Win32_System_Power'*"]
1178 pub const SystemWakeSource
: POWER_INFORMATION_LEVEL
= 35i32;
1179 #[doc = "*Required features: 'Win32_System_Power'*"]
1180 pub const SystemHiberFileInformation
: POWER_INFORMATION_LEVEL
= 36i32;
1181 #[doc = "*Required features: 'Win32_System_Power'*"]
1182 pub const TraceServicePowerMessage
: POWER_INFORMATION_LEVEL
= 37i32;
1183 #[doc = "*Required features: 'Win32_System_Power'*"]
1184 pub const ProcessorLoad
: POWER_INFORMATION_LEVEL
= 38i32;
1185 #[doc = "*Required features: 'Win32_System_Power'*"]
1186 pub const PowerShutdownNotification
: POWER_INFORMATION_LEVEL
= 39i32;
1187 #[doc = "*Required features: 'Win32_System_Power'*"]
1188 pub const MonitorCapabilities
: POWER_INFORMATION_LEVEL
= 40i32;
1189 #[doc = "*Required features: 'Win32_System_Power'*"]
1190 pub const SessionPowerInit
: POWER_INFORMATION_LEVEL
= 41i32;
1191 #[doc = "*Required features: 'Win32_System_Power'*"]
1192 pub const SessionDisplayState
: POWER_INFORMATION_LEVEL
= 42i32;
1193 #[doc = "*Required features: 'Win32_System_Power'*"]
1194 pub const PowerRequestCreate
: POWER_INFORMATION_LEVEL
= 43i32;
1195 #[doc = "*Required features: 'Win32_System_Power'*"]
1196 pub const PowerRequestAction
: POWER_INFORMATION_LEVEL
= 44i32;
1197 #[doc = "*Required features: 'Win32_System_Power'*"]
1198 pub const GetPowerRequestList
: POWER_INFORMATION_LEVEL
= 45i32;
1199 #[doc = "*Required features: 'Win32_System_Power'*"]
1200 pub const ProcessorInformationEx
: POWER_INFORMATION_LEVEL
= 46i32;
1201 #[doc = "*Required features: 'Win32_System_Power'*"]
1202 pub const NotifyUserModeLegacyPowerEvent
: POWER_INFORMATION_LEVEL
= 47i32;
1203 #[doc = "*Required features: 'Win32_System_Power'*"]
1204 pub const GroupPark
: POWER_INFORMATION_LEVEL
= 48i32;
1205 #[doc = "*Required features: 'Win32_System_Power'*"]
1206 pub const ProcessorIdleDomains
: POWER_INFORMATION_LEVEL
= 49i32;
1207 #[doc = "*Required features: 'Win32_System_Power'*"]
1208 pub const WakeTimerList
: POWER_INFORMATION_LEVEL
= 50i32;
1209 #[doc = "*Required features: 'Win32_System_Power'*"]
1210 pub const SystemHiberFileSize
: POWER_INFORMATION_LEVEL
= 51i32;
1211 #[doc = "*Required features: 'Win32_System_Power'*"]
1212 pub const ProcessorIdleStatesHv
: POWER_INFORMATION_LEVEL
= 52i32;
1213 #[doc = "*Required features: 'Win32_System_Power'*"]
1214 pub const ProcessorPerfStatesHv
: POWER_INFORMATION_LEVEL
= 53i32;
1215 #[doc = "*Required features: 'Win32_System_Power'*"]
1216 pub const ProcessorPerfCapHv
: POWER_INFORMATION_LEVEL
= 54i32;
1217 #[doc = "*Required features: 'Win32_System_Power'*"]
1218 pub const ProcessorSetIdle
: POWER_INFORMATION_LEVEL
= 55i32;
1219 #[doc = "*Required features: 'Win32_System_Power'*"]
1220 pub const LogicalProcessorIdling
: POWER_INFORMATION_LEVEL
= 56i32;
1221 #[doc = "*Required features: 'Win32_System_Power'*"]
1222 pub const UserPresence
: POWER_INFORMATION_LEVEL
= 57i32;
1223 #[doc = "*Required features: 'Win32_System_Power'*"]
1224 pub const PowerSettingNotificationName
: POWER_INFORMATION_LEVEL
= 58i32;
1225 #[doc = "*Required features: 'Win32_System_Power'*"]
1226 pub const GetPowerSettingValue
: POWER_INFORMATION_LEVEL
= 59i32;
1227 #[doc = "*Required features: 'Win32_System_Power'*"]
1228 pub const IdleResiliency
: POWER_INFORMATION_LEVEL
= 60i32;
1229 #[doc = "*Required features: 'Win32_System_Power'*"]
1230 pub const SessionRITState
: POWER_INFORMATION_LEVEL
= 61i32;
1231 #[doc = "*Required features: 'Win32_System_Power'*"]
1232 pub const SessionConnectNotification
: POWER_INFORMATION_LEVEL
= 62i32;
1233 #[doc = "*Required features: 'Win32_System_Power'*"]
1234 pub const SessionPowerCleanup
: POWER_INFORMATION_LEVEL
= 63i32;
1235 #[doc = "*Required features: 'Win32_System_Power'*"]
1236 pub const SessionLockState
: POWER_INFORMATION_LEVEL
= 64i32;
1237 #[doc = "*Required features: 'Win32_System_Power'*"]
1238 pub const SystemHiberbootState
: POWER_INFORMATION_LEVEL
= 65i32;
1239 #[doc = "*Required features: 'Win32_System_Power'*"]
1240 pub const PlatformInformation
: POWER_INFORMATION_LEVEL
= 66i32;
1241 #[doc = "*Required features: 'Win32_System_Power'*"]
1242 pub const PdcInvocation
: POWER_INFORMATION_LEVEL
= 67i32;
1243 #[doc = "*Required features: 'Win32_System_Power'*"]
1244 pub const MonitorInvocation
: POWER_INFORMATION_LEVEL
= 68i32;
1245 #[doc = "*Required features: 'Win32_System_Power'*"]
1246 pub const FirmwareTableInformationRegistered
: POWER_INFORMATION_LEVEL
= 69i32;
1247 #[doc = "*Required features: 'Win32_System_Power'*"]
1248 pub const SetShutdownSelectedTime
: POWER_INFORMATION_LEVEL
= 70i32;
1249 #[doc = "*Required features: 'Win32_System_Power'*"]
1250 pub const SuspendResumeInvocation
: POWER_INFORMATION_LEVEL
= 71i32;
1251 #[doc = "*Required features: 'Win32_System_Power'*"]
1252 pub const PlmPowerRequestCreate
: POWER_INFORMATION_LEVEL
= 72i32;
1253 #[doc = "*Required features: 'Win32_System_Power'*"]
1254 pub const ScreenOff
: POWER_INFORMATION_LEVEL
= 73i32;
1255 #[doc = "*Required features: 'Win32_System_Power'*"]
1256 pub const CsDeviceNotification
: POWER_INFORMATION_LEVEL
= 74i32;
1257 #[doc = "*Required features: 'Win32_System_Power'*"]
1258 pub const PlatformRole
: POWER_INFORMATION_LEVEL
= 75i32;
1259 #[doc = "*Required features: 'Win32_System_Power'*"]
1260 pub const LastResumePerformance
: POWER_INFORMATION_LEVEL
= 76i32;
1261 #[doc = "*Required features: 'Win32_System_Power'*"]
1262 pub const DisplayBurst
: POWER_INFORMATION_LEVEL
= 77i32;
1263 #[doc = "*Required features: 'Win32_System_Power'*"]
1264 pub const ExitLatencySamplingPercentage
: POWER_INFORMATION_LEVEL
= 78i32;
1265 #[doc = "*Required features: 'Win32_System_Power'*"]
1266 pub const RegisterSpmPowerSettings
: POWER_INFORMATION_LEVEL
= 79i32;
1267 #[doc = "*Required features: 'Win32_System_Power'*"]
1268 pub const PlatformIdleStates
: POWER_INFORMATION_LEVEL
= 80i32;
1269 #[doc = "*Required features: 'Win32_System_Power'*"]
1270 pub const ProcessorIdleVeto
: POWER_INFORMATION_LEVEL
= 81i32;
1271 #[doc = "*Required features: 'Win32_System_Power'*"]
1272 pub const PlatformIdleVeto
: POWER_INFORMATION_LEVEL
= 82i32;
1273 #[doc = "*Required features: 'Win32_System_Power'*"]
1274 pub const SystemBatteryStatePrecise
: POWER_INFORMATION_LEVEL
= 83i32;
1275 #[doc = "*Required features: 'Win32_System_Power'*"]
1276 pub const ThermalEvent
: POWER_INFORMATION_LEVEL
= 84i32;
1277 #[doc = "*Required features: 'Win32_System_Power'*"]
1278 pub const PowerRequestActionInternal
: POWER_INFORMATION_LEVEL
= 85i32;
1279 #[doc = "*Required features: 'Win32_System_Power'*"]
1280 pub const BatteryDeviceState
: POWER_INFORMATION_LEVEL
= 86i32;
1281 #[doc = "*Required features: 'Win32_System_Power'*"]
1282 pub const PowerInformationInternal
: POWER_INFORMATION_LEVEL
= 87i32;
1283 #[doc = "*Required features: 'Win32_System_Power'*"]
1284 pub const ThermalStandby
: POWER_INFORMATION_LEVEL
= 88i32;
1285 #[doc = "*Required features: 'Win32_System_Power'*"]
1286 pub const SystemHiberFileType
: POWER_INFORMATION_LEVEL
= 89i32;
1287 #[doc = "*Required features: 'Win32_System_Power'*"]
1288 pub const PhysicalPowerButtonPress
: POWER_INFORMATION_LEVEL
= 90i32;
1289 #[doc = "*Required features: 'Win32_System_Power'*"]
1290 pub const QueryPotentialDripsConstraint
: POWER_INFORMATION_LEVEL
= 91i32;
1291 #[doc = "*Required features: 'Win32_System_Power'*"]
1292 pub const EnergyTrackerCreate
: POWER_INFORMATION_LEVEL
= 92i32;
1293 #[doc = "*Required features: 'Win32_System_Power'*"]
1294 pub const EnergyTrackerQuery
: POWER_INFORMATION_LEVEL
= 93i32;
1295 #[doc = "*Required features: 'Win32_System_Power'*"]
1296 pub const UpdateBlackBoxRecorder
: POWER_INFORMATION_LEVEL
= 94i32;
1297 #[doc = "*Required features: 'Win32_System_Power'*"]
1298 pub const SessionAllowExternalDmaDevices
: POWER_INFORMATION_LEVEL
= 95i32;
1299 #[doc = "*Required features: 'Win32_System_Power'*"]
1300 pub const SendSuspendResumeNotification
: POWER_INFORMATION_LEVEL
= 96i32;
1301 #[doc = "*Required features: 'Win32_System_Power'*"]
1302 pub const PowerInformationLevelMaximum
: POWER_INFORMATION_LEVEL
= 97i32;
1303 #[doc = "*Required features: 'Win32_System_Power'*"]
1304 pub type POWER_PLATFORM_ROLE
= i32;
1305 #[doc = "*Required features: 'Win32_System_Power'*"]
1306 pub const PlatformRoleUnspecified
: POWER_PLATFORM_ROLE
= 0i32;
1307 #[doc = "*Required features: 'Win32_System_Power'*"]
1308 pub const PlatformRoleDesktop
: POWER_PLATFORM_ROLE
= 1i32;
1309 #[doc = "*Required features: 'Win32_System_Power'*"]
1310 pub const PlatformRoleMobile
: POWER_PLATFORM_ROLE
= 2i32;
1311 #[doc = "*Required features: 'Win32_System_Power'*"]
1312 pub const PlatformRoleWorkstation
: POWER_PLATFORM_ROLE
= 3i32;
1313 #[doc = "*Required features: 'Win32_System_Power'*"]
1314 pub const PlatformRoleEnterpriseServer
: POWER_PLATFORM_ROLE
= 4i32;
1315 #[doc = "*Required features: 'Win32_System_Power'*"]
1316 pub const PlatformRoleSOHOServer
: POWER_PLATFORM_ROLE
= 5i32;
1317 #[doc = "*Required features: 'Win32_System_Power'*"]
1318 pub const PlatformRoleAppliancePC
: POWER_PLATFORM_ROLE
= 6i32;
1319 #[doc = "*Required features: 'Win32_System_Power'*"]
1320 pub const PlatformRolePerformanceServer
: POWER_PLATFORM_ROLE
= 7i32;
1321 #[doc = "*Required features: 'Win32_System_Power'*"]
1322 pub const PlatformRoleSlate
: POWER_PLATFORM_ROLE
= 8i32;
1323 #[doc = "*Required features: 'Win32_System_Power'*"]
1324 pub const PlatformRoleMaximum
: POWER_PLATFORM_ROLE
= 9i32;
1325 #[doc = "*Required features: 'Win32_System_Power'*"]
1326 pub type POWER_PLATFORM_ROLE_VERSION
= u32;
1327 #[doc = "*Required features: 'Win32_System_Power'*"]
1328 pub const POWER_PLATFORM_ROLE_V1
: POWER_PLATFORM_ROLE_VERSION
= 1u32;
1329 #[doc = "*Required features: 'Win32_System_Power'*"]
1330 pub const POWER_PLATFORM_ROLE_V2
: POWER_PLATFORM_ROLE_VERSION
= 2u32;
1332 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
1333 #[cfg(feature = "Win32_Foundation")]
1334 pub struct POWER_POLICY
{
1335 pub user
: USER_POWER_POLICY
,
1336 pub mach
: MACHINE_POWER_POLICY
,
1338 #[cfg(feature = "Win32_Foundation")]
1339 impl ::core
::marker
::Copy
for POWER_POLICY {}
1340 #[cfg(feature = "Win32_Foundation")]
1341 impl ::core
::clone
::Clone
for POWER_POLICY
{
1342 fn clone(&self) -> Self {
1346 #[doc = "*Required features: 'Win32_System_Power'*"]
1347 pub type POWER_REQUEST_TYPE
= i32;
1348 #[doc = "*Required features: 'Win32_System_Power'*"]
1349 pub const PowerRequestDisplayRequired
: POWER_REQUEST_TYPE
= 0i32;
1350 #[doc = "*Required features: 'Win32_System_Power'*"]
1351 pub const PowerRequestSystemRequired
: POWER_REQUEST_TYPE
= 1i32;
1352 #[doc = "*Required features: 'Win32_System_Power'*"]
1353 pub const PowerRequestAwayModeRequired
: POWER_REQUEST_TYPE
= 2i32;
1354 #[doc = "*Required features: 'Win32_System_Power'*"]
1355 pub const PowerRequestExecutionRequired
: POWER_REQUEST_TYPE
= 3i32;
1356 #[doc = "*Required features: 'Win32_System_Power'*"]
1357 pub type POWER_SETTING_REGISTER_NOTIFICATION_FLAGS
= u32;
1358 #[doc = "*Required features: 'Win32_System_Power'*"]
1359 pub const DEVICE_NOTIFY_SERVICE_HANDLE
: POWER_SETTING_REGISTER_NOTIFICATION_FLAGS
= 1u32;
1360 #[doc = "*Required features: 'Win32_System_Power'*"]
1361 pub const DEVICE_NOTIFY_CALLBACK
: POWER_SETTING_REGISTER_NOTIFICATION_FLAGS
= 2u32;
1362 #[doc = "*Required features: 'Win32_System_Power'*"]
1363 pub const DEVICE_NOTIFY_WINDOW_HANDLE
: POWER_SETTING_REGISTER_NOTIFICATION_FLAGS
= 0u32;
1364 #[doc = "*Required features: 'Win32_System_Power', 'Win32_UI_Shell_PropertiesSystem'*"]
1365 #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")]
1366 pub const PROCESSOR_NUMBER_PKEY
: super::super::UI
::Shell
::PropertiesSystem
::PROPERTYKEY
= super::super::UI
::Shell
::PropertiesSystem
::PROPERTYKEY { fmtid: ::windows_sys::core::GUID { data1: 1462028317, data2: 54703, data3: 19487, data4: [161, 3, 160, 110, 40, 242, 4, 198] }
, pid
: 1u32 };
1368 #[doc = "*Required features: 'Win32_System_Power'*"]
1369 pub struct PROCESSOR_OBJECT_INFO
{
1370 pub PhysicalID
: u32,
1371 pub PBlkAddress
: u32,
1374 impl ::core
::marker
::Copy
for PROCESSOR_OBJECT_INFO {}
1375 impl ::core
::clone
::Clone
for PROCESSOR_OBJECT_INFO
{
1376 fn clone(&self) -> Self {
1381 #[doc = "*Required features: 'Win32_System_Power'*"]
1382 pub struct PROCESSOR_OBJECT_INFO_EX
{
1383 pub PhysicalID
: u32,
1384 pub PBlkAddress
: u32,
1386 pub InitialApicId
: u32,
1388 impl ::core
::marker
::Copy
for PROCESSOR_OBJECT_INFO_EX {}
1389 impl ::core
::clone
::Clone
for PROCESSOR_OBJECT_INFO_EX
{
1390 fn clone(&self) -> Self {
1395 #[doc = "*Required features: 'Win32_System_Power'*"]
1396 pub struct PROCESSOR_POWER_POLICY
{
1398 pub DynamicThrottle
: u8,
1401 pub PolicyCount
: u32,
1402 pub Policy
: [PROCESSOR_POWER_POLICY_INFO
; 3],
1404 impl ::core
::marker
::Copy
for PROCESSOR_POWER_POLICY {}
1405 impl ::core
::clone
::Clone
for PROCESSOR_POWER_POLICY
{
1406 fn clone(&self) -> Self {
1411 #[doc = "*Required features: 'Win32_System_Power'*"]
1412 pub struct PROCESSOR_POWER_POLICY_INFO
{
1414 pub DemoteLimit
: u32,
1415 pub PromoteLimit
: u32,
1416 pub DemotePercent
: u8,
1417 pub PromotePercent
: u8,
1421 impl ::core
::marker
::Copy
for PROCESSOR_POWER_POLICY_INFO {}
1422 impl ::core
::clone
::Clone
for PROCESSOR_POWER_POLICY_INFO
{
1423 fn clone(&self) -> Self {
1427 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
1428 #[cfg(feature = "Win32_Foundation")]
1429 pub type PWRSCHEMESENUMPROC
= ::core
::option
::Option
<unsafe extern "system" fn(index
: u32, namesize
: u32, name
: super::super::Foundation
::PWSTR
, descriptionsize
: u32, description
: super::super::Foundation
::PWSTR
, policy
: *const POWER_POLICY
, context
: super::super::Foundation
::LPARAM
) -> super::super::Foundation
::BOOLEAN
>;
1430 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
1431 #[cfg(feature = "Win32_Foundation")]
1432 pub type PWRSCHEMESENUMPROC_V1
= ::core
::option
::Option
<unsafe extern "system" fn(index
: u32, namesize
: u32, name
: *const i8, descriptionsize
: u32, description
: *const i8, policy
: *const POWER_POLICY
, context
: super::super::Foundation
::LPARAM
) -> super::super::Foundation
::BOOLEAN
>;
1434 #[doc = "*Required features: 'Win32_System_Power'*"]
1435 pub struct SET_POWER_SETTING_VALUE
{
1437 pub Guid
: ::windows_sys
::core
::GUID
,
1438 pub PowerCondition
: SYSTEM_POWER_CONDITION
,
1439 pub DataLength
: u32,
1442 impl ::core
::marker
::Copy
for SET_POWER_SETTING_VALUE {}
1443 impl ::core
::clone
::Clone
for SET_POWER_SETTING_VALUE
{
1444 fn clone(&self) -> Self {
1449 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
1450 #[cfg(feature = "Win32_Foundation")]
1451 pub struct SYSTEM_BATTERY_STATE
{
1452 pub AcOnLine
: super::super::Foundation
::BOOLEAN
,
1453 pub BatteryPresent
: super::super::Foundation
::BOOLEAN
,
1454 pub Charging
: super::super::Foundation
::BOOLEAN
,
1455 pub Discharging
: super::super::Foundation
::BOOLEAN
,
1456 pub Spare1
: [super::super::Foundation
::BOOLEAN
; 3],
1458 pub MaxCapacity
: u32,
1459 pub RemainingCapacity
: u32,
1461 pub EstimatedTime
: u32,
1462 pub DefaultAlert1
: u32,
1463 pub DefaultAlert2
: u32,
1465 #[cfg(feature = "Win32_Foundation")]
1466 impl ::core
::marker
::Copy
for SYSTEM_BATTERY_STATE {}
1467 #[cfg(feature = "Win32_Foundation")]
1468 impl ::core
::clone
::Clone
for SYSTEM_BATTERY_STATE
{
1469 fn clone(&self) -> Self {
1474 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
1475 #[cfg(feature = "Win32_Foundation")]
1476 pub struct SYSTEM_POWER_CAPABILITIES
{
1477 pub PowerButtonPresent
: super::super::Foundation
::BOOLEAN
,
1478 pub SleepButtonPresent
: super::super::Foundation
::BOOLEAN
,
1479 pub LidPresent
: super::super::Foundation
::BOOLEAN
,
1480 pub SystemS1
: super::super::Foundation
::BOOLEAN
,
1481 pub SystemS2
: super::super::Foundation
::BOOLEAN
,
1482 pub SystemS3
: super::super::Foundation
::BOOLEAN
,
1483 pub SystemS4
: super::super::Foundation
::BOOLEAN
,
1484 pub SystemS5
: super::super::Foundation
::BOOLEAN
,
1485 pub HiberFilePresent
: super::super::Foundation
::BOOLEAN
,
1486 pub FullWake
: super::super::Foundation
::BOOLEAN
,
1487 pub VideoDimPresent
: super::super::Foundation
::BOOLEAN
,
1488 pub ApmPresent
: super::super::Foundation
::BOOLEAN
,
1489 pub UpsPresent
: super::super::Foundation
::BOOLEAN
,
1490 pub ThermalControl
: super::super::Foundation
::BOOLEAN
,
1491 pub ProcessorThrottle
: super::super::Foundation
::BOOLEAN
,
1492 pub ProcessorMinThrottle
: u8,
1493 pub ProcessorMaxThrottle
: u8,
1494 pub FastSystemS4
: super::super::Foundation
::BOOLEAN
,
1495 pub Hiberboot
: super::super::Foundation
::BOOLEAN
,
1496 pub WakeAlarmPresent
: super::super::Foundation
::BOOLEAN
,
1497 pub AoAc
: super::super::Foundation
::BOOLEAN
,
1498 pub DiskSpinDown
: super::super::Foundation
::BOOLEAN
,
1499 pub HiberFileType
: u8,
1500 pub AoAcConnectivitySupported
: super::super::Foundation
::BOOLEAN
,
1501 pub spare3
: [u8; 6],
1502 pub SystemBatteriesPresent
: super::super::Foundation
::BOOLEAN
,
1503 pub BatteriesAreShortTerm
: super::super::Foundation
::BOOLEAN
,
1504 pub BatteryScale
: [BATTERY_REPORTING_SCALE
; 3],
1505 pub AcOnLineWake
: SYSTEM_POWER_STATE
,
1506 pub SoftLidWake
: SYSTEM_POWER_STATE
,
1507 pub RtcWake
: SYSTEM_POWER_STATE
,
1508 pub MinDeviceWakeState
: SYSTEM_POWER_STATE
,
1509 pub DefaultLowLatencyWake
: SYSTEM_POWER_STATE
,
1511 #[cfg(feature = "Win32_Foundation")]
1512 impl ::core
::marker
::Copy
for SYSTEM_POWER_CAPABILITIES {}
1513 #[cfg(feature = "Win32_Foundation")]
1514 impl ::core
::clone
::Clone
for SYSTEM_POWER_CAPABILITIES
{
1515 fn clone(&self) -> Self {
1519 #[doc = "*Required features: 'Win32_System_Power'*"]
1520 pub type SYSTEM_POWER_CONDITION
= i32;
1521 #[doc = "*Required features: 'Win32_System_Power'*"]
1522 pub const PoAc
: SYSTEM_POWER_CONDITION
= 0i32;
1523 #[doc = "*Required features: 'Win32_System_Power'*"]
1524 pub const PoDc
: SYSTEM_POWER_CONDITION
= 1i32;
1525 #[doc = "*Required features: 'Win32_System_Power'*"]
1526 pub const PoHot
: SYSTEM_POWER_CONDITION
= 2i32;
1527 #[doc = "*Required features: 'Win32_System_Power'*"]
1528 pub const PoConditionMaximum
: SYSTEM_POWER_CONDITION
= 3i32;
1530 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
1531 #[cfg(feature = "Win32_Foundation")]
1532 pub struct SYSTEM_POWER_LEVEL
{
1533 pub Enable
: super::super::Foundation
::BOOLEAN
,
1535 pub BatteryLevel
: u32,
1536 pub PowerPolicy
: POWER_ACTION_POLICY
,
1537 pub MinSystemState
: SYSTEM_POWER_STATE
,
1539 #[cfg(feature = "Win32_Foundation")]
1540 impl ::core
::marker
::Copy
for SYSTEM_POWER_LEVEL {}
1541 #[cfg(feature = "Win32_Foundation")]
1542 impl ::core
::clone
::Clone
for SYSTEM_POWER_LEVEL
{
1543 fn clone(&self) -> Self {
1548 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
1549 #[cfg(feature = "Win32_Foundation")]
1550 pub struct SYSTEM_POWER_POLICY
{
1552 pub PowerButton
: POWER_ACTION_POLICY
,
1553 pub SleepButton
: POWER_ACTION_POLICY
,
1554 pub LidClose
: POWER_ACTION_POLICY
,
1555 pub LidOpenWake
: SYSTEM_POWER_STATE
,
1557 pub Idle
: POWER_ACTION_POLICY
,
1558 pub IdleTimeout
: u32,
1559 pub IdleSensitivity
: u8,
1560 pub DynamicThrottle
: u8,
1561 pub Spare2
: [u8; 2],
1562 pub MinSleep
: SYSTEM_POWER_STATE
,
1563 pub MaxSleep
: SYSTEM_POWER_STATE
,
1564 pub ReducedLatencySleep
: SYSTEM_POWER_STATE
,
1565 pub WinLogonFlags
: u32,
1567 pub DozeS4Timeout
: u32,
1568 pub BroadcastCapacityResolution
: u32,
1569 pub DischargePolicy
: [SYSTEM_POWER_LEVEL
; 4],
1570 pub VideoTimeout
: u32,
1571 pub VideoDimDisplay
: super::super::Foundation
::BOOLEAN
,
1572 pub VideoReserved
: [u32; 3],
1573 pub SpindownTimeout
: u32,
1574 pub OptimizeForPower
: super::super::Foundation
::BOOLEAN
,
1575 pub FanThrottleTolerance
: u8,
1576 pub ForcedThrottle
: u8,
1577 pub MinThrottle
: u8,
1578 pub OverThrottled
: POWER_ACTION_POLICY
,
1580 #[cfg(feature = "Win32_Foundation")]
1581 impl ::core
::marker
::Copy
for SYSTEM_POWER_POLICY {}
1582 #[cfg(feature = "Win32_Foundation")]
1583 impl ::core
::clone
::Clone
for SYSTEM_POWER_POLICY
{
1584 fn clone(&self) -> Self {
1588 #[doc = "*Required features: 'Win32_System_Power'*"]
1589 pub type SYSTEM_POWER_STATE
= i32;
1590 #[doc = "*Required features: 'Win32_System_Power'*"]
1591 pub const PowerSystemUnspecified
: SYSTEM_POWER_STATE
= 0i32;
1592 #[doc = "*Required features: 'Win32_System_Power'*"]
1593 pub const PowerSystemWorking
: SYSTEM_POWER_STATE
= 1i32;
1594 #[doc = "*Required features: 'Win32_System_Power'*"]
1595 pub const PowerSystemSleeping1
: SYSTEM_POWER_STATE
= 2i32;
1596 #[doc = "*Required features: 'Win32_System_Power'*"]
1597 pub const PowerSystemSleeping2
: SYSTEM_POWER_STATE
= 3i32;
1598 #[doc = "*Required features: 'Win32_System_Power'*"]
1599 pub const PowerSystemSleeping3
: SYSTEM_POWER_STATE
= 4i32;
1600 #[doc = "*Required features: 'Win32_System_Power'*"]
1601 pub const PowerSystemHibernate
: SYSTEM_POWER_STATE
= 5i32;
1602 #[doc = "*Required features: 'Win32_System_Power'*"]
1603 pub const PowerSystemShutdown
: SYSTEM_POWER_STATE
= 6i32;
1604 #[doc = "*Required features: 'Win32_System_Power'*"]
1605 pub const PowerSystemMaximum
: SYSTEM_POWER_STATE
= 7i32;
1607 #[doc = "*Required features: 'Win32_System_Power'*"]
1608 pub struct SYSTEM_POWER_STATUS
{
1609 pub ACLineStatus
: u8,
1610 pub BatteryFlag
: u8,
1611 pub BatteryLifePercent
: u8,
1612 pub SystemStatusFlag
: u8,
1613 pub BatteryLifeTime
: u32,
1614 pub BatteryFullLifeTime
: u32,
1616 impl ::core
::marker
::Copy
for SYSTEM_POWER_STATUS {}
1617 impl ::core
::clone
::Clone
for SYSTEM_POWER_STATUS
{
1618 fn clone(&self) -> Self {
1622 #[doc = "*Required features: 'Win32_System_Power'*"]
1623 pub const SYS_BUTTON_LID
: u32 = 4u32;
1624 #[doc = "*Required features: 'Win32_System_Power'*"]
1625 pub const SYS_BUTTON_LID_CHANGED
: u32 = 524288u32;
1626 #[doc = "*Required features: 'Win32_System_Power'*"]
1627 pub const SYS_BUTTON_LID_CLOSED
: u32 = 131072u32;
1628 #[doc = "*Required features: 'Win32_System_Power'*"]
1629 pub const SYS_BUTTON_LID_INITIAL
: u32 = 262144u32;
1630 #[doc = "*Required features: 'Win32_System_Power'*"]
1631 pub const SYS_BUTTON_LID_OPEN
: u32 = 65536u32;
1632 #[doc = "*Required features: 'Win32_System_Power'*"]
1633 pub const SYS_BUTTON_LID_STATE_MASK
: u32 = 196608u32;
1634 #[doc = "*Required features: 'Win32_System_Power'*"]
1635 pub const SYS_BUTTON_POWER
: u32 = 1u32;
1636 #[doc = "*Required features: 'Win32_System_Power'*"]
1637 pub const SYS_BUTTON_SLEEP
: u32 = 2u32;
1638 #[doc = "*Required features: 'Win32_System_Power'*"]
1639 pub const SYS_BUTTON_WAKE
: u32 = 2147483648u32;
1640 #[doc = "*Required features: 'Win32_System_Power'*"]
1641 pub const THERMAL_COOLING_INTERFACE_VERSION
: u32 = 1u32;
1642 #[doc = "*Required features: 'Win32_System_Power'*"]
1643 pub const THERMAL_DEVICE_INTERFACE_VERSION
: u32 = 1u32;
1645 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
1646 #[cfg(feature = "Win32_Foundation")]
1647 pub struct THERMAL_EVENT
{
1651 pub Temperature
: u32,
1652 pub TripPointTemperature
: u32,
1653 pub Initiator
: super::super::Foundation
::PWSTR
,
1655 #[cfg(feature = "Win32_Foundation")]
1656 impl ::core
::marker
::Copy
for THERMAL_EVENT {}
1657 #[cfg(feature = "Win32_Foundation")]
1658 impl ::core
::clone
::Clone
for THERMAL_EVENT
{
1659 fn clone(&self) -> Self {
1663 #[doc = "*Required features: 'Win32_System_Power'*"]
1664 pub const THERMAL_EVENT_VERSION
: u32 = 1u32;
1666 #[doc = "*Required features: 'Win32_System_Power'*"]
1667 pub struct THERMAL_INFORMATION
{
1668 pub ThermalStamp
: u32,
1669 pub ThermalConstant1
: u32,
1670 pub ThermalConstant2
: u32,
1671 pub Processors
: usize,
1672 pub SamplingPeriod
: u32,
1673 pub CurrentTemperature
: u32,
1674 pub PassiveTripPoint
: u32,
1675 pub CriticalTripPoint
: u32,
1676 pub ActiveTripPointCount
: u8,
1677 pub ActiveTripPoint
: [u32; 10],
1679 impl ::core
::marker
::Copy
for THERMAL_INFORMATION {}
1680 impl ::core
::clone
::Clone
for THERMAL_INFORMATION
{
1681 fn clone(&self) -> Self {
1686 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
1687 #[cfg(feature = "Win32_Foundation")]
1688 pub struct THERMAL_POLICY
{
1690 pub WaitForUpdate
: super::super::Foundation
::BOOLEAN
,
1691 pub Hibernate
: super::super::Foundation
::BOOLEAN
,
1692 pub Critical
: super::super::Foundation
::BOOLEAN
,
1693 pub ThermalStandby
: super::super::Foundation
::BOOLEAN
,
1694 pub ActivationReasons
: u32,
1695 pub PassiveLimit
: u32,
1696 pub ActiveLevel
: u32,
1697 pub OverThrottled
: super::super::Foundation
::BOOLEAN
,
1699 #[cfg(feature = "Win32_Foundation")]
1700 impl ::core
::marker
::Copy
for THERMAL_POLICY {}
1701 #[cfg(feature = "Win32_Foundation")]
1702 impl ::core
::clone
::Clone
for THERMAL_POLICY
{
1703 fn clone(&self) -> Self {
1707 #[doc = "*Required features: 'Win32_System_Power'*"]
1708 pub const THERMAL_POLICY_VERSION_1
: u32 = 1u32;
1709 #[doc = "*Required features: 'Win32_System_Power'*"]
1710 pub const THERMAL_POLICY_VERSION_2
: u32 = 2u32;
1712 #[doc = "*Required features: 'Win32_System_Power'*"]
1713 pub struct THERMAL_WAIT_READ
{
1715 pub LowTemperature
: u32,
1716 pub HighTemperature
: u32,
1718 impl ::core
::marker
::Copy
for THERMAL_WAIT_READ {}
1719 impl ::core
::clone
::Clone
for THERMAL_WAIT_READ
{
1720 fn clone(&self) -> Self {
1724 #[doc = "*Required features: 'Win32_System_Power'*"]
1725 pub const TZ_ACTIVATION_REASON_CURRENT
: u32 = 2u32;
1726 #[doc = "*Required features: 'Win32_System_Power'*"]
1727 pub const TZ_ACTIVATION_REASON_THERMAL
: u32 = 1u32;
1728 #[doc = "*Required features: 'Win32_System_Power'*"]
1729 pub const UNKNOWN_CAPACITY
: u32 = 4294967295u32;
1730 #[doc = "*Required features: 'Win32_System_Power'*"]
1731 pub const UNKNOWN_CURRENT
: u32 = 4294967295u32;
1732 #[doc = "*Required features: 'Win32_System_Power'*"]
1733 pub const UNKNOWN_RATE
: u32 = 2147483648u32;
1734 #[doc = "*Required features: 'Win32_System_Power'*"]
1735 pub const UNKNOWN_VOLTAGE
: u32 = 4294967295u32;
1736 #[doc = "*Required features: 'Win32_System_Power'*"]
1737 pub type USB_CHARGER_PORT
= i32;
1738 #[doc = "*Required features: 'Win32_System_Power'*"]
1739 pub const UsbChargerPort_Legacy
: USB_CHARGER_PORT
= 0i32;
1740 #[doc = "*Required features: 'Win32_System_Power'*"]
1741 pub const UsbChargerPort_TypeC
: USB_CHARGER_PORT
= 1i32;
1742 #[doc = "*Required features: 'Win32_System_Power'*"]
1743 pub const UsbChargerPort_Max
: USB_CHARGER_PORT
= 2i32;
1745 #[doc = "*Required features: 'Win32_System_Power', 'Win32_Foundation'*"]
1746 #[cfg(feature = "Win32_Foundation")]
1747 pub struct USER_POWER_POLICY
{
1749 pub IdleAc
: POWER_ACTION_POLICY
,
1750 pub IdleDc
: POWER_ACTION_POLICY
,
1751 pub IdleTimeoutAc
: u32,
1752 pub IdleTimeoutDc
: u32,
1753 pub IdleSensitivityAc
: u8,
1754 pub IdleSensitivityDc
: u8,
1755 pub ThrottlePolicyAc
: u8,
1756 pub ThrottlePolicyDc
: u8,
1757 pub MaxSleepAc
: SYSTEM_POWER_STATE
,
1758 pub MaxSleepDc
: SYSTEM_POWER_STATE
,
1759 pub Reserved
: [u32; 2],
1760 pub VideoTimeoutAc
: u32,
1761 pub VideoTimeoutDc
: u32,
1762 pub SpindownTimeoutAc
: u32,
1763 pub SpindownTimeoutDc
: u32,
1764 pub OptimizeForPowerAc
: super::super::Foundation
::BOOLEAN
,
1765 pub OptimizeForPowerDc
: super::super::Foundation
::BOOLEAN
,
1766 pub FanThrottleToleranceAc
: u8,
1767 pub FanThrottleToleranceDc
: u8,
1768 pub ForcedThrottleAc
: u8,
1769 pub ForcedThrottleDc
: u8,
1771 #[cfg(feature = "Win32_Foundation")]
1772 impl ::core
::marker
::Copy
for USER_POWER_POLICY {}
1773 #[cfg(feature = "Win32_Foundation")]
1774 impl ::core
::clone
::Clone
for USER_POWER_POLICY
{
1775 fn clone(&self) -> Self {
1780 #[doc = "*Required features: 'Win32_System_Power'*"]
1781 pub struct WAKE_ALARM_INFORMATION
{
1782 pub TimerIdentifier
: u32,
1785 impl ::core
::marker
::Copy
for WAKE_ALARM_INFORMATION {}
1786 impl ::core
::clone
::Clone
for WAKE_ALARM_INFORMATION
{
1787 fn clone(&self) -> Self {