| 1 |
#[cfg(feature = "Win32_Foundation")] |
| 2 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn CallNtPowerInformation(informationlevel : POWER_INFORMATION_LEVEL, inputbuffer : *const ::core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut ::core::ffi::c_void, outputbufferlength : u32) -> super::super::Foundation:: NTSTATUS); |
| 3 |
#[cfg(feature = "Win32_Foundation")] |
| 4 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn CanUserWritePwrScheme() -> super::super::Foundation:: BOOLEAN); |
| 5 |
#[cfg(feature = "Win32_Foundation")] |
| 6 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn DeletePwrScheme(uiid : u32) -> super::super::Foundation:: BOOLEAN); |
| 7 |
#[cfg(feature = "Win32_Foundation")] |
| 8 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn DevicePowerClose() -> super::super::Foundation:: BOOLEAN); |
| 9 |
#[cfg(feature = "Win32_Foundation")] |
| 10 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn DevicePowerEnumDevices(queryindex : u32, queryinterpretationflags : u32, queryflags : u32, preturnbuffer : *mut u8, pbuffersize : *mut u32) -> super::super::Foundation:: BOOLEAN); |
| 11 |
#[cfg(feature = "Win32_Foundation")] |
| 12 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn DevicePowerOpen(debugmask : u32) -> super::super::Foundation:: BOOLEAN); |
| 13 |
::windows_targets::link!("powrprof.dll" "system" fn DevicePowerSetDeviceState(devicedescription : ::windows_sys::core::PCWSTR, setflags : u32, setdata : *const ::core::ffi::c_void) -> u32); |
| 14 |
#[cfg(feature = "Win32_Foundation")] |
| 15 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn EnumPwrSchemes(lpfn : PWRSCHEMESENUMPROC, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOLEAN); |
| 16 |
#[cfg(feature = "Win32_Foundation")] |
| 17 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetActivePwrScheme(puiid : *mut u32) -> super::super::Foundation:: BOOLEAN); |
| 18 |
#[cfg(feature = "Win32_Foundation")] |
| 19 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetCurrentPowerPolicies(pglobalpowerpolicy : *mut GLOBAL_POWER_POLICY, ppowerpolicy : *mut POWER_POLICY) -> super::super::Foundation:: BOOLEAN); |
| 20 |
#[cfg(feature = "Win32_Foundation")] |
| 21 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetDevicePowerState(hdevice : super::super::Foundation:: HANDLE, pfon : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); |
| 22 |
#[cfg(feature = "Win32_Foundation")] |
| 23 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetPwrCapabilities(lpspc : *mut SYSTEM_POWER_CAPABILITIES) -> super::super::Foundation:: BOOLEAN); |
| 24 |
#[cfg(feature = "Win32_Foundation")] |
| 25 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetPwrDiskSpindownRange(puimax : *mut u32, puimin : *mut u32) -> super::super::Foundation:: BOOLEAN); |
| 26 |
#[cfg(feature = "Win32_Foundation")] |
| 27 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetSystemPowerStatus(lpsystempowerstatus : *mut SYSTEM_POWER_STATUS) -> super::super::Foundation:: BOOL); |
| 28 |
#[cfg(feature = "Win32_Foundation")] |
| 29 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn IsAdminOverrideActive(papp : *const ADMINISTRATOR_POWER_POLICY) -> super::super::Foundation:: BOOLEAN); |
| 30 |
#[cfg(feature = "Win32_Foundation")] |
| 31 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn IsPwrHibernateAllowed() -> super::super::Foundation:: BOOLEAN); |
| 32 |
#[cfg(feature = "Win32_Foundation")] |
| 33 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn IsPwrShutdownAllowed() -> super::super::Foundation:: BOOLEAN); |
| 34 |
#[cfg(feature = "Win32_Foundation")] |
| 35 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn IsPwrSuspendAllowed() -> super::super::Foundation:: BOOLEAN); |
| 36 |
#[cfg(feature = "Win32_Foundation")] |
| 37 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn IsSystemResumeAutomatic() -> super::super::Foundation:: BOOL); |
| 38 |
#[cfg(feature = "Win32_Foundation")] |
| 39 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn PowerCanRestoreIndividualDefaultPowerScheme(schemeguid : *const ::windows_sys::core::GUID) -> super::super::Foundation:: WIN32_ERROR); |
| 40 |
#[cfg(feature = "Win32_Foundation")] |
| 41 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn PowerClearRequest(powerrequest : super::super::Foundation:: HANDLE, requesttype : POWER_REQUEST_TYPE) -> super::super::Foundation:: BOOL); |
| 42 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 43 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] fn PowerCreatePossibleSetting(rootsystempowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const ::windows_sys::core::GUID, powersettingguid : *const ::windows_sys::core::GUID, possiblesettingindex : u32) -> super::super::Foundation:: WIN32_ERROR); |
| 44 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Threading"))] |
| 45 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Threading\"`"] fn PowerCreateRequest(context : *const super::Threading:: REASON_CONTEXT) -> super::super::Foundation:: HANDLE); |
| 46 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 47 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] fn PowerCreateSetting(rootsystempowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const ::windows_sys::core::GUID, powersettingguid : *const ::windows_sys::core::GUID) -> super::super::Foundation:: WIN32_ERROR); |
| 48 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 49 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] fn PowerDeleteScheme(rootpowerkey : super::Registry:: HKEY, schemeguid : *const ::windows_sys::core::GUID) -> super::super::Foundation:: WIN32_ERROR); |
| 50 |
::windows_targets::link!("powrprof.dll" "system" fn PowerDeterminePlatformRole() -> POWER_PLATFORM_ROLE); |
| 51 |
::windows_targets::link!("powrprof.dll" "system" fn PowerDeterminePlatformRoleEx(version : POWER_PLATFORM_ROLE_VERSION) -> POWER_PLATFORM_ROLE); |
| 52 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 53 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] fn PowerDuplicateScheme(rootpowerkey : super::Registry:: HKEY, sourceschemeguid : *const ::windows_sys::core::GUID, destinationschemeguid : *mut *mut ::windows_sys::core::GUID) -> super::super::Foundation:: WIN32_ERROR); |
| 54 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 55 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] 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) -> super::super::Foundation:: WIN32_ERROR); |
| 56 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 57 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] fn PowerGetActiveScheme(userrootpowerkey : super::Registry:: HKEY, activepolicyguid : *mut *mut ::windows_sys::core::GUID) -> super::super::Foundation:: WIN32_ERROR); |
| 58 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 59 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] fn PowerImportPowerScheme(rootpowerkey : super::Registry:: HKEY, importfilenamepath : ::windows_sys::core::PCWSTR, destinationschemeguid : *mut *mut ::windows_sys::core::GUID) -> super::super::Foundation:: WIN32_ERROR); |
| 60 |
#[cfg(feature = "Win32_Foundation")] |
| 61 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn PowerIsSettingRangeDefined(subkeyguid : *const ::windows_sys::core::GUID, settingguid : *const ::windows_sys::core::GUID) -> super::super::Foundation:: BOOLEAN); |
| 62 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 63 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] fn PowerOpenSystemPowerKey(phsystempowerkey : *mut super::Registry:: HKEY, access : u32, openexisting : super::super::Foundation:: BOOL) -> u32); |
| 64 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 65 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] fn PowerOpenUserPowerKey(phuserpowerkey : *mut super::Registry:: HKEY, access : u32, openexisting : super::super::Foundation:: BOOL) -> u32); |
| 66 |
#[cfg(feature = "Win32_System_Registry")] |
| 67 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_System_Registry\"`"] 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); |
| 68 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 69 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] 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) -> super::super::Foundation:: WIN32_ERROR); |
| 70 |
#[cfg(feature = "Win32_System_Registry")] |
| 71 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_System_Registry\"`"] 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); |
| 72 |
#[cfg(feature = "Win32_System_Registry")] |
| 73 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_System_Registry\"`"] 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); |
| 74 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 75 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] 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) -> super::super::Foundation:: WIN32_ERROR); |
| 76 |
#[cfg(feature = "Win32_System_Registry")] |
| 77 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_System_Registry\"`"] 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); |
| 78 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 79 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] 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) -> super::super::Foundation:: WIN32_ERROR); |
| 80 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 81 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] 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) -> super::super::Foundation:: WIN32_ERROR); |
| 82 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 83 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] 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) -> super::super::Foundation:: WIN32_ERROR); |
| 84 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 85 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] 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) -> super::super::Foundation:: WIN32_ERROR); |
| 86 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 87 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] 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) -> super::super::Foundation:: WIN32_ERROR); |
| 88 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 89 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] 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) -> super::super::Foundation:: WIN32_ERROR); |
| 90 |
::windows_targets::link!("powrprof.dll" "system" fn PowerReadSettingAttributes(subgroupguid : *const ::windows_sys::core::GUID, powersettingguid : *const ::windows_sys::core::GUID) -> u32); |
| 91 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 92 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] fn PowerReadValueIncrement(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const ::windows_sys::core::GUID, powersettingguid : *const ::windows_sys::core::GUID, valueincrement : *mut u32) -> super::super::Foundation:: WIN32_ERROR); |
| 93 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 94 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] fn PowerReadValueMax(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const ::windows_sys::core::GUID, powersettingguid : *const ::windows_sys::core::GUID, valuemaximum : *mut u32) -> super::super::Foundation:: WIN32_ERROR); |
| 95 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 96 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] fn PowerReadValueMin(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const ::windows_sys::core::GUID, powersettingguid : *const ::windows_sys::core::GUID, valueminimum : *mut u32) -> super::super::Foundation:: WIN32_ERROR); |
| 97 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 98 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] fn PowerReadValueUnitsSpecifier(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const ::windows_sys::core::GUID, powersettingguid : *const ::windows_sys::core::GUID, buffer : *mut u8, buffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR); |
| 99 |
::windows_targets::link!("powrprof.dll" "system" 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); |
| 100 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] |
| 101 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`"] fn PowerRegisterSuspendResumeNotification(flags : super::super::UI::WindowsAndMessaging:: REGISTER_NOTIFICATION_FLAGS, recipient : super::super::Foundation:: HANDLE, registrationhandle : *mut *mut ::core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); |
| 102 |
#[cfg(feature = "Win32_Foundation")] |
| 103 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn PowerRemovePowerSetting(powersettingsubkeyguid : *const ::windows_sys::core::GUID, powersettingguid : *const ::windows_sys::core::GUID) -> super::super::Foundation:: WIN32_ERROR); |
| 104 |
::windows_targets::link!("powrprof.dll" "system" fn PowerReplaceDefaultPowerSchemes() -> u32); |
| 105 |
#[cfg(feature = "Win32_Foundation")] |
| 106 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn PowerReportThermalEvent(event : *const THERMAL_EVENT) -> super::super::Foundation:: WIN32_ERROR); |
| 107 |
#[cfg(feature = "Win32_Foundation")] |
| 108 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn PowerRestoreDefaultPowerSchemes() -> super::super::Foundation:: WIN32_ERROR); |
| 109 |
#[cfg(feature = "Win32_Foundation")] |
| 110 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn PowerRestoreIndividualDefaultPowerScheme(schemeguid : *const ::windows_sys::core::GUID) -> super::super::Foundation:: WIN32_ERROR); |
| 111 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 112 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] fn PowerSetActiveScheme(userrootpowerkey : super::Registry:: HKEY, schemeguid : *const ::windows_sys::core::GUID) -> super::super::Foundation:: WIN32_ERROR); |
| 113 |
#[cfg(feature = "Win32_Foundation")] |
| 114 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn PowerSetRequest(powerrequest : super::super::Foundation:: HANDLE, requesttype : POWER_REQUEST_TYPE) -> super::super::Foundation:: BOOL); |
| 115 |
#[cfg(feature = "Win32_Foundation")] |
| 116 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn PowerSettingAccessCheck(accessflags : POWER_DATA_ACCESSOR, powerguid : *const ::windows_sys::core::GUID) -> super::super::Foundation:: WIN32_ERROR); |
| 117 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 118 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] fn PowerSettingAccessCheckEx(accessflags : POWER_DATA_ACCESSOR, powerguid : *const ::windows_sys::core::GUID, accesstype : super::Registry:: REG_SAM_FLAGS) -> super::super::Foundation:: WIN32_ERROR); |
| 119 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] |
| 120 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`"] fn PowerSettingRegisterNotification(settingguid : *const ::windows_sys::core::GUID, flags : super::super::UI::WindowsAndMessaging:: REGISTER_NOTIFICATION_FLAGS, recipient : super::super::Foundation:: HANDLE, registrationhandle : *mut *mut ::core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); |
| 121 |
#[cfg(feature = "Win32_Foundation")] |
| 122 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn PowerSettingUnregisterNotification(registrationhandle : HPOWERNOTIFY) -> super::super::Foundation:: WIN32_ERROR); |
| 123 |
::windows_targets::link!("powrprof.dll" "system" fn PowerUnregisterFromEffectivePowerModeNotifications(registrationhandle : *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT); |
| 124 |
#[cfg(feature = "Win32_Foundation")] |
| 125 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn PowerUnregisterSuspendResumeNotification(registrationhandle : HPOWERNOTIFY) -> super::super::Foundation:: WIN32_ERROR); |
| 126 |
#[cfg(feature = "Win32_System_Registry")] |
| 127 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_System_Registry\"`"] 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); |
| 128 |
#[cfg(feature = "Win32_System_Registry")] |
| 129 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_System_Registry\"`"] 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); |
| 130 |
#[cfg(feature = "Win32_System_Registry")] |
| 131 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_System_Registry\"`"] 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); |
| 132 |
#[cfg(feature = "Win32_System_Registry")] |
| 133 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_System_Registry\"`"] 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); |
| 134 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 135 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] 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) -> super::super::Foundation:: WIN32_ERROR); |
| 136 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 137 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] 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) -> super::super::Foundation:: WIN32_ERROR); |
| 138 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 139 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] 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) -> super::super::Foundation:: WIN32_ERROR); |
| 140 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 141 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] 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) -> super::super::Foundation:: WIN32_ERROR); |
| 142 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 143 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] 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) -> super::super::Foundation:: WIN32_ERROR); |
| 144 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 145 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] 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) -> super::super::Foundation:: WIN32_ERROR); |
| 146 |
#[cfg(feature = "Win32_Foundation")] |
| 147 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn PowerWriteSettingAttributes(subgroupguid : *const ::windows_sys::core::GUID, powersettingguid : *const ::windows_sys::core::GUID, attributes : u32) -> super::super::Foundation:: WIN32_ERROR); |
| 148 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 149 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] fn PowerWriteValueIncrement(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const ::windows_sys::core::GUID, powersettingguid : *const ::windows_sys::core::GUID, valueincrement : u32) -> super::super::Foundation:: WIN32_ERROR); |
| 150 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 151 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] fn PowerWriteValueMax(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const ::windows_sys::core::GUID, powersettingguid : *const ::windows_sys::core::GUID, valuemaximum : u32) -> super::super::Foundation:: WIN32_ERROR); |
| 152 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 153 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] fn PowerWriteValueMin(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const ::windows_sys::core::GUID, powersettingguid : *const ::windows_sys::core::GUID, valueminimum : u32) -> super::super::Foundation:: WIN32_ERROR); |
| 154 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] |
| 155 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`"] fn PowerWriteValueUnitsSpecifier(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const ::windows_sys::core::GUID, powersettingguid : *const ::windows_sys::core::GUID, buffer : *const u8, buffersize : u32) -> super::super::Foundation:: WIN32_ERROR); |
| 156 |
#[cfg(feature = "Win32_Foundation")] |
| 157 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ReadGlobalPwrPolicy(pglobalpowerpolicy : *const GLOBAL_POWER_POLICY) -> super::super::Foundation:: BOOLEAN); |
| 158 |
#[cfg(feature = "Win32_Foundation")] |
| 159 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ReadProcessorPwrScheme(uiid : u32, pmachineprocessorpowerpolicy : *mut MACHINE_PROCESSOR_POWER_POLICY) -> super::super::Foundation:: BOOLEAN); |
| 160 |
#[cfg(feature = "Win32_Foundation")] |
| 161 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ReadPwrScheme(uiid : u32, ppowerpolicy : *mut POWER_POLICY) -> super::super::Foundation:: BOOLEAN); |
| 162 |
#[cfg(feature = "Win32_Foundation")] |
| 163 |
::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn RegisterPowerSettingNotification(hrecipient : super::super::Foundation:: HANDLE, powersettingguid : *const ::windows_sys::core::GUID, flags : u32) -> HPOWERNOTIFY); |
| 164 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] |
| 165 |
::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`"] fn RegisterSuspendResumeNotification(hrecipient : super::super::Foundation:: HANDLE, flags : super::super::UI::WindowsAndMessaging:: REGISTER_NOTIFICATION_FLAGS) -> HPOWERNOTIFY); |
| 166 |
#[cfg(feature = "Win32_Foundation")] |
| 167 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn RequestWakeupLatency(latency : LATENCY_TIME) -> super::super::Foundation:: BOOL); |
| 168 |
#[cfg(feature = "Win32_Foundation")] |
| 169 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetActivePwrScheme(uiid : u32, pglobalpowerpolicy : *const GLOBAL_POWER_POLICY, ppowerpolicy : *const POWER_POLICY) -> super::super::Foundation:: BOOLEAN); |
| 170 |
#[cfg(feature = "Win32_Foundation")] |
| 171 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetSuspendState(bhibernate : super::super::Foundation:: BOOLEAN, bforce : super::super::Foundation:: BOOLEAN, bwakeupeventsdisabled : super::super::Foundation:: BOOLEAN) -> super::super::Foundation:: BOOLEAN); |
| 172 |
#[cfg(feature = "Win32_Foundation")] |
| 173 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetSystemPowerState(fsuspend : super::super::Foundation:: BOOL, fforce : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); |
| 174 |
::windows_targets::link!("kernel32.dll" "system" fn SetThreadExecutionState(esflags : EXECUTION_STATE) -> EXECUTION_STATE); |
| 175 |
#[cfg(feature = "Win32_Foundation")] |
| 176 |
::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn UnregisterPowerSettingNotification(handle : HPOWERNOTIFY) -> super::super::Foundation:: BOOL); |
| 177 |
#[cfg(feature = "Win32_Foundation")] |
| 178 |
::windows_targets::link!("user32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn UnregisterSuspendResumeNotification(handle : HPOWERNOTIFY) -> super::super::Foundation:: BOOL); |
| 179 |
#[cfg(feature = "Win32_Foundation")] |
| 180 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ValidatePowerPolicies(pglobalpowerpolicy : *mut GLOBAL_POWER_POLICY, ppowerpolicy : *mut POWER_POLICY) -> super::super::Foundation:: BOOLEAN); |
| 181 |
#[cfg(feature = "Win32_Foundation")] |
| 182 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WriteGlobalPwrPolicy(pglobalpowerpolicy : *const GLOBAL_POWER_POLICY) -> super::super::Foundation:: BOOLEAN); |
| 183 |
#[cfg(feature = "Win32_Foundation")] |
| 184 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WriteProcessorPwrScheme(uiid : u32, pmachineprocessorpowerpolicy : *const MACHINE_PROCESSOR_POWER_POLICY) -> super::super::Foundation:: BOOLEAN); |
| 185 |
#[cfg(feature = "Win32_Foundation")] |
| 186 |
::windows_targets::link!("powrprof.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WritePwrScheme(puiid : *const u32, lpszschemename : ::windows_sys::core::PCWSTR, lpszdescription : ::windows_sys::core::PCWSTR, lpscheme : *const POWER_POLICY) -> super::super::Foundation:: BOOLEAN); |
| 187 |
pub const ACCESS_ACTIVE_OVERLAY_SCHEME: POWER_DATA_ACCESSOR = 27i32; |
| 188 |
pub const ACCESS_ACTIVE_SCHEME: POWER_DATA_ACCESSOR = 19i32; |
| 189 |
pub const ACCESS_AC_POWER_SETTING_INDEX: POWER_DATA_ACCESSOR = 0i32; |
| 190 |
pub const ACCESS_AC_POWER_SETTING_MAX: POWER_DATA_ACCESSOR = 21i32; |
| 191 |
pub const ACCESS_AC_POWER_SETTING_MIN: POWER_DATA_ACCESSOR = 23i32; |
| 192 |
pub const ACCESS_ATTRIBUTES: POWER_DATA_ACCESSOR = 15i32; |
| 193 |
pub const ACCESS_CREATE_SCHEME: POWER_DATA_ACCESSOR = 20i32; |
| 194 |
pub const ACCESS_DC_POWER_SETTING_INDEX: POWER_DATA_ACCESSOR = 1i32; |
| 195 |
pub const ACCESS_DC_POWER_SETTING_MAX: POWER_DATA_ACCESSOR = 22i32; |
| 196 |
pub const ACCESS_DC_POWER_SETTING_MIN: POWER_DATA_ACCESSOR = 24i32; |
| 197 |
pub const ACCESS_DEFAULT_AC_POWER_SETTING: POWER_DATA_ACCESSOR = 7i32; |
| 198 |
pub const ACCESS_DEFAULT_DC_POWER_SETTING: POWER_DATA_ACCESSOR = 8i32; |
| 199 |
pub const ACCESS_DEFAULT_SECURITY_DESCRIPTOR: POWER_DATA_ACCESSOR = 14i32; |
| 200 |
pub const ACCESS_DESCRIPTION: POWER_DATA_ACCESSOR = 3i32; |
| 201 |
pub const ACCESS_FRIENDLY_NAME: POWER_DATA_ACCESSOR = 2i32; |
| 202 |
pub const ACCESS_ICON_RESOURCE: POWER_DATA_ACCESSOR = 13i32; |
| 203 |
pub const ACCESS_INDIVIDUAL_SETTING: POWER_DATA_ACCESSOR = 18i32; |
| 204 |
pub const ACCESS_OVERLAY_SCHEME: POWER_DATA_ACCESSOR = 26i32; |
| 205 |
pub const ACCESS_POSSIBLE_POWER_SETTING: POWER_DATA_ACCESSOR = 4i32; |
| 206 |
pub const ACCESS_POSSIBLE_POWER_SETTING_DESCRIPTION: POWER_DATA_ACCESSOR = 6i32; |
| 207 |
pub const ACCESS_POSSIBLE_POWER_SETTING_FRIENDLY_NAME: POWER_DATA_ACCESSOR = 5i32; |
| 208 |
pub const ACCESS_POSSIBLE_VALUE_INCREMENT: POWER_DATA_ACCESSOR = 11i32; |
| 209 |
pub const ACCESS_POSSIBLE_VALUE_MAX: POWER_DATA_ACCESSOR = 10i32; |
| 210 |
pub const ACCESS_POSSIBLE_VALUE_MIN: POWER_DATA_ACCESSOR = 9i32; |
| 211 |
pub const ACCESS_POSSIBLE_VALUE_UNITS: POWER_DATA_ACCESSOR = 12i32; |
| 212 |
pub const ACCESS_PROFILE: POWER_DATA_ACCESSOR = 25i32; |
| 213 |
pub const ACCESS_SCHEME: POWER_DATA_ACCESSOR = 16i32; |
| 214 |
pub const ACCESS_SUBGROUP: POWER_DATA_ACCESSOR = 17i32; |
| 215 |
pub const ACPI_TIME_ADJUST_DAYLIGHT: u32 = 1u32; |
| 216 |
pub const ACPI_TIME_IN_DAYLIGHT: u32 = 2u32; |
| 217 |
pub const ACPI_TIME_ZONE_UNKNOWN: u32 = 2047u32; |
| 218 |
pub const ACTIVE_COOLING: u32 = 0u32; |
| 219 |
pub const ALTITUDE_GROUP_POLICY: POWER_SETTING_ALTITUDE = 0i32; |
| 220 |
pub const ALTITUDE_INTERNAL_OVERRIDE: POWER_SETTING_ALTITUDE = 5i32; |
| 221 |
pub const ALTITUDE_OEM_CUSTOMIZATION: POWER_SETTING_ALTITUDE = 4i32; |
| 222 |
pub const ALTITUDE_OS_DEFAULT: POWER_SETTING_ALTITUDE = 6i32; |
| 223 |
pub const ALTITUDE_PROVISIONING: POWER_SETTING_ALTITUDE = 3i32; |
| 224 |
pub const ALTITUDE_RUNTIME_OVERRIDE: POWER_SETTING_ALTITUDE = 2i32; |
| 225 |
pub const ALTITUDE_USER: POWER_SETTING_ALTITUDE = 1i32; |
| 226 |
pub const AcpiTimeResolutionMax: ACPI_TIME_RESOLUTION = 2i32; |
| 227 |
pub const AcpiTimeResolutionMilliseconds: ACPI_TIME_RESOLUTION = 0i32; |
| 228 |
pub const AcpiTimeResolutionSeconds: ACPI_TIME_RESOLUTION = 1i32; |
| 229 |
pub const AdministratorPowerPolicy: POWER_INFORMATION_LEVEL = 9i32; |
| 230 |
pub const BATTERY_CAPACITY_RELATIVE: u32 = 1073741824u32; |
| 231 |
pub const BATTERY_CHARGING: u32 = 4u32; |
| 232 |
pub const BATTERY_CLASS_MAJOR_VERSION: u32 = 1u32; |
| 233 |
pub const BATTERY_CLASS_MINOR_VERSION: u32 = 0u32; |
| 234 |
pub const BATTERY_CLASS_MINOR_VERSION_1: u32 = 1u32; |
| 235 |
pub const BATTERY_CRITICAL: u32 = 8u32; |
| 236 |
pub const BATTERY_CYCLE_COUNT_WMI_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xef98db24_0014_4c25_a50b_c724ae5cd371); |
| 237 |
pub const BATTERY_DISCHARGING: u32 = 2u32; |
| 238 |
pub const BATTERY_FULL_CHARGED_CAPACITY_WMI_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x40b40565_96f7_4435_8694_97e0e4395905); |
| 239 |
pub const BATTERY_IS_SHORT_TERM: u32 = 536870912u32; |
| 240 |
pub const BATTERY_MINIPORT_UPDATE_DATA_VER_1: u32 = 1u32; |
| 241 |
pub const BATTERY_MINIPORT_UPDATE_DATA_VER_2: u32 = 2u32; |
| 242 |
pub const BATTERY_POWER_ON_LINE: u32 = 1u32; |
| 243 |
pub const BATTERY_RUNTIME_WMI_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x535a3767_1ac2_49bc_a077_3f7a02e40aec); |
| 244 |
pub const BATTERY_SEALED: u32 = 268435456u32; |
| 245 |
pub const BATTERY_SET_CHARGER_ID_SUPPORTED: u32 = 8u32; |
| 246 |
pub const BATTERY_SET_CHARGE_SUPPORTED: u32 = 1u32; |
| 247 |
pub const BATTERY_SET_CHARGINGSOURCE_SUPPORTED: u32 = 4u32; |
| 248 |
pub const BATTERY_SET_DISCHARGE_SUPPORTED: u32 = 2u32; |
| 249 |
pub const BATTERY_STATIC_DATA_WMI_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x05e1e463_e4e2_4ea9_80cb_9bd4b3ca0655); |
| 250 |
pub const BATTERY_STATUS_CHANGE_WMI_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xcddfa0c3_7c5b_4e43_a034_059fa5b84364); |
| 251 |
pub const BATTERY_STATUS_WMI_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xfc4670d1_ebbf_416e_87ce_374a4ebc111a); |
| 252 |
pub const BATTERY_SYSTEM_BATTERY: u32 = 2147483648u32; |
| 253 |
pub const BATTERY_TAG_CHANGE_WMI_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x5e1f6e19_8786_4d23_94fc_9e746bd5d888); |
| 254 |
pub const BATTERY_TAG_INVALID: u32 = 0u32; |
| 255 |
pub const BATTERY_TEMPERATURE_WMI_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1a52a14d_adce_4a44_9a3e_c8d8f15ff2c2); |
| 256 |
pub const BATTERY_UNKNOWN_CAPACITY: u32 = 4294967295u32; |
| 257 |
pub const BATTERY_UNKNOWN_CURRENT: u32 = 4294967295u32; |
| 258 |
pub const BATTERY_UNKNOWN_RATE: u32 = 2147483648u32; |
| 259 |
pub const BATTERY_UNKNOWN_TIME: u32 = 4294967295u32; |
| 260 |
pub const BATTERY_UNKNOWN_VOLTAGE: u32 = 4294967295u32; |
| 261 |
pub const BATTERY_USB_CHARGER_STATUS_FN_DEFAULT_USB: u32 = 1u32; |
| 262 |
pub const BATTERY_USB_CHARGER_STATUS_UCM_PD: u32 = 2u32; |
| 263 |
pub const BatteryCharge: BATTERY_SET_INFORMATION_LEVEL = 1i32; |
| 264 |
pub const BatteryChargerId: BATTERY_SET_INFORMATION_LEVEL = 4i32; |
| 265 |
pub const BatteryChargerStatus: BATTERY_SET_INFORMATION_LEVEL = 5i32; |
| 266 |
pub const BatteryChargingSource: BATTERY_SET_INFORMATION_LEVEL = 3i32; |
| 267 |
pub const BatteryChargingSourceType_AC: BATTERY_CHARGING_SOURCE_TYPE = 1i32; |
| 268 |
pub const BatteryChargingSourceType_Max: BATTERY_CHARGING_SOURCE_TYPE = 4i32; |
| 269 |
pub const BatteryChargingSourceType_USB: BATTERY_CHARGING_SOURCE_TYPE = 2i32; |
| 270 |
pub const BatteryChargingSourceType_Wireless: BATTERY_CHARGING_SOURCE_TYPE = 3i32; |
| 271 |
pub const BatteryCriticalBias: BATTERY_SET_INFORMATION_LEVEL = 0i32; |
| 272 |
pub const BatteryDeviceName: BATTERY_QUERY_INFORMATION_LEVEL = 4i32; |
| 273 |
pub const BatteryDeviceState: POWER_INFORMATION_LEVEL = 86i32; |
| 274 |
pub const BatteryDischarge: BATTERY_SET_INFORMATION_LEVEL = 2i32; |
| 275 |
pub const BatteryEstimatedTime: BATTERY_QUERY_INFORMATION_LEVEL = 3i32; |
| 276 |
pub const BatteryGranularityInformation: BATTERY_QUERY_INFORMATION_LEVEL = 1i32; |
| 277 |
pub const BatteryInformation: BATTERY_QUERY_INFORMATION_LEVEL = 0i32; |
| 278 |
pub const BatteryManufactureDate: BATTERY_QUERY_INFORMATION_LEVEL = 5i32; |
| 279 |
pub const BatteryManufactureName: BATTERY_QUERY_INFORMATION_LEVEL = 6i32; |
| 280 |
pub const BatterySerialNumber: BATTERY_QUERY_INFORMATION_LEVEL = 8i32; |
| 281 |
pub const BatteryTemperature: BATTERY_QUERY_INFORMATION_LEVEL = 2i32; |
| 282 |
pub const BatteryUniqueID: BATTERY_QUERY_INFORMATION_LEVEL = 7i32; |
| 283 |
pub const BlackBoxRecorderDirectAccessBuffer: POWER_INFORMATION_LEVEL = 97i32; |
| 284 |
pub const CsDeviceNotification: POWER_INFORMATION_LEVEL = 74i32; |
| 285 |
pub const DEVICEPOWER_AND_OPERATION: u32 = 1073741824u32; |
| 286 |
pub const DEVICEPOWER_CLEAR_WAKEENABLED: u32 = 2u32; |
| 287 |
pub const DEVICEPOWER_FILTER_DEVICES_PRESENT: u32 = 536870912u32; |
| 288 |
pub const DEVICEPOWER_FILTER_HARDWARE: u32 = 268435456u32; |
| 289 |
pub const DEVICEPOWER_FILTER_ON_NAME: u32 = 33554432u32; |
| 290 |
pub const DEVICEPOWER_FILTER_WAKEENABLED: u32 = 134217728u32; |
| 291 |
pub const DEVICEPOWER_FILTER_WAKEPROGRAMMABLE: u32 = 67108864u32; |
| 292 |
pub const DEVICEPOWER_HARDWAREID: u32 = 2147483648u32; |
| 293 |
pub const DEVICEPOWER_SET_WAKEENABLED: u32 = 1u32; |
| 294 |
pub const DisplayBurst: POWER_INFORMATION_LEVEL = 77i32; |
| 295 |
pub const EFFECTIVE_POWER_MODE_V1: u32 = 1u32; |
| 296 |
pub const EFFECTIVE_POWER_MODE_V2: u32 = 2u32; |
| 297 |
pub const EMI_NAME_MAX: u32 = 16u32; |
| 298 |
pub const EMI_VERSION_V1: u32 = 1u32; |
| 299 |
pub const EMI_VERSION_V2: u32 = 2u32; |
| 300 |
pub const ES_AWAYMODE_REQUIRED: EXECUTION_STATE = 64u32; |
| 301 |
pub const ES_CONTINUOUS: EXECUTION_STATE = 2147483648u32; |
| 302 |
pub const ES_DISPLAY_REQUIRED: EXECUTION_STATE = 2u32; |
| 303 |
pub const ES_SYSTEM_REQUIRED: EXECUTION_STATE = 1u32; |
| 304 |
pub const ES_USER_PRESENT: EXECUTION_STATE = 4u32; |
| 305 |
pub const EffectivePowerModeBalanced: EFFECTIVE_POWER_MODE = 2i32; |
| 306 |
pub const EffectivePowerModeBatterySaver: EFFECTIVE_POWER_MODE = 0i32; |
| 307 |
pub const EffectivePowerModeBetterBattery: EFFECTIVE_POWER_MODE = 1i32; |
| 308 |
pub const EffectivePowerModeGameMode: EFFECTIVE_POWER_MODE = 5i32; |
| 309 |
pub const EffectivePowerModeHighPerformance: EFFECTIVE_POWER_MODE = 3i32; |
| 310 |
pub const EffectivePowerModeMaxPerformance: EFFECTIVE_POWER_MODE = 4i32; |
| 311 |
pub const EffectivePowerModeMixedReality: EFFECTIVE_POWER_MODE = 6i32; |
| 312 |
pub const EmiMeasurementUnitPicowattHours: EMI_MEASUREMENT_UNIT = 0i32; |
| 313 |
pub const EnableMultiBatteryDisplay: u32 = 2u32; |
| 314 |
pub const EnablePasswordLogon: u32 = 4u32; |
| 315 |
pub const EnableSysTrayBatteryMeter: u32 = 1u32; |
| 316 |
pub const EnableVideoDimDisplay: u32 = 16u32; |
| 317 |
pub const EnableWakeOnRing: u32 = 8u32; |
| 318 |
pub const EnergyTrackerCreate: POWER_INFORMATION_LEVEL = 92i32; |
| 319 |
pub const EnergyTrackerQuery: POWER_INFORMATION_LEVEL = 93i32; |
| 320 |
pub const ExitLatencySamplingPercentage: POWER_INFORMATION_LEVEL = 78i32; |
| 321 |
pub const FirmwareTableInformationRegistered: POWER_INFORMATION_LEVEL = 69i32; |
| 322 |
pub const GUID_CLASS_INPUT: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4d1e55b2_f16f_11cf_88cb_001111000030); |
| 323 |
pub const GUID_DEVICE_ACPI_TIME: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x97f99bf6_4497_4f18_bb22_4b9fb2fbef9c); |
| 324 |
pub const GUID_DEVICE_APPLICATIONLAUNCH_BUTTON: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x629758ee_986e_4d9e_8e47_de27f8ab054d); |
| 325 |
pub const GUID_DEVICE_BATTERY: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x72631e54_78a4_11d0_bcf7_00aa00b7b32a); |
| 326 |
pub const GUID_DEVICE_ENERGY_METER: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x45bd8344_7ed6_49cf_a440_c276c933b053); |
| 327 |
pub const GUID_DEVICE_FAN: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x05ecd13d_81da_4a2a_8a4c_524f23dd4dc9); |
| 328 |
pub const GUID_DEVICE_LID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4afa3d52_74a7_11d0_be5e_00a0c9062857); |
| 329 |
pub const GUID_DEVICE_MEMORY: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3fd0f03d_92e0_45fb_b75c_5ed8ffb01021); |
| 330 |
pub const GUID_DEVICE_MESSAGE_INDICATOR: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xcd48a365_fa94_4ce2_a232_a1b764e5d8b4); |
| 331 |
pub const GUID_DEVICE_PROCESSOR: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x97fadb10_4e33_40ae_359c_8bef029dbdd0); |
| 332 |
pub const GUID_DEVICE_SYS_BUTTON: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4afa3d53_74a7_11d0_be5e_00a0c9062857); |
| 333 |
pub const GUID_DEVICE_THERMAL_ZONE: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4afa3d51_74a7_11d0_be5e_00a0c9062857); |
| 334 |
pub const GUID_DEVINTERFACE_THERMAL_COOLING: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xdbe4373d_3c81_40cb_ace4_e0e5d05f0c9f); |
| 335 |
pub const GUID_DEVINTERFACE_THERMAL_MANAGER: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x927ec093_69a4_4bc0_bd02_711664714463); |
| 336 |
pub const GetPowerRequestList: POWER_INFORMATION_LEVEL = 45i32; |
| 337 |
pub const GetPowerSettingValue: POWER_INFORMATION_LEVEL = 59i32; |
| 338 |
pub const GroupPark: POWER_INFORMATION_LEVEL = 48i32; |
| 339 |
pub const IOCTL_ACPI_GET_REAL_TIME: u32 = 2703888u32; |
| 340 |
pub const IOCTL_ACPI_SET_REAL_TIME: u32 = 2720276u32; |
| 341 |
pub const IOCTL_BATTERY_CHARGING_SOURCE_CHANGE: u32 = 2703440u32; |
| 342 |
pub const IOCTL_BATTERY_QUERY_INFORMATION: u32 = 2703428u32; |
| 343 |
pub const IOCTL_BATTERY_QUERY_STATUS: u32 = 2703436u32; |
| 344 |
pub const IOCTL_BATTERY_QUERY_TAG: u32 = 2703424u32; |
| 345 |
pub const IOCTL_BATTERY_SET_INFORMATION: u32 = 2719816u32; |
| 346 |
pub const IOCTL_EMI_GET_MEASUREMENT: u32 = 2244620u32; |
| 347 |
pub const IOCTL_EMI_GET_METADATA: u32 = 2244616u32; |
| 348 |
pub const IOCTL_EMI_GET_METADATA_SIZE: u32 = 2244612u32; |
| 349 |
pub const IOCTL_EMI_GET_VERSION: u32 = 2244608u32; |
| 350 |
pub const IOCTL_GET_ACPI_TIME_AND_ALARM_CAPABILITIES: u32 = 2703900u32; |
| 351 |
pub const IOCTL_GET_PROCESSOR_OBJ_INFO: u32 = 2703744u32; |
| 352 |
pub const IOCTL_GET_SYS_BUTTON_CAPS: u32 = 2703680u32; |
| 353 |
pub const IOCTL_GET_SYS_BUTTON_EVENT: u32 = 2703684u32; |
| 354 |
pub const IOCTL_GET_WAKE_ALARM_POLICY: u32 = 2736652u32; |
| 355 |
pub const IOCTL_GET_WAKE_ALARM_SYSTEM_POWERSTATE: u32 = 2703896u32; |
| 356 |
pub const IOCTL_GET_WAKE_ALARM_VALUE: u32 = 2736648u32; |
| 357 |
pub const IOCTL_NOTIFY_SWITCH_EVENT: u32 = 2703616u32; |
| 358 |
pub const IOCTL_QUERY_LID: u32 = 2703552u32; |
| 359 |
pub const IOCTL_RUN_ACTIVE_COOLING_METHOD: u32 = 2719880u32; |
| 360 |
pub const IOCTL_SET_SYS_MESSAGE_INDICATOR: u32 = 2720192u32; |
| 361 |
pub const IOCTL_SET_WAKE_ALARM_POLICY: u32 = 2720260u32; |
| 362 |
pub const IOCTL_SET_WAKE_ALARM_VALUE: u32 = 2720256u32; |
| 363 |
pub const IOCTL_THERMAL_QUERY_INFORMATION: u32 = 2703488u32; |
| 364 |
pub const IOCTL_THERMAL_READ_POLICY: u32 = 2703508u32; |
| 365 |
pub const IOCTL_THERMAL_READ_TEMPERATURE: u32 = 2703504u32; |
| 366 |
pub const IOCTL_THERMAL_SET_COOLING_POLICY: u32 = 2719876u32; |
| 367 |
pub const IOCTL_THERMAL_SET_PASSIVE_LIMIT: u32 = 2719884u32; |
| 368 |
pub const IdleResiliency: POWER_INFORMATION_LEVEL = 60i32; |
| 369 |
pub const LT_DONT_CARE: LATENCY_TIME = 0i32; |
| 370 |
pub const LT_LOWEST_LATENCY: LATENCY_TIME = 1i32; |
| 371 |
pub const LastResumePerformance: POWER_INFORMATION_LEVEL = 76i32; |
| 372 |
pub const LastSleepTime: POWER_INFORMATION_LEVEL = 15i32; |
| 373 |
pub const LastWakeTime: POWER_INFORMATION_LEVEL = 14i32; |
| 374 |
pub const LogicalProcessorIdling: POWER_INFORMATION_LEVEL = 56i32; |
| 375 |
pub const MAX_ACTIVE_COOLING_LEVELS: u32 = 10u32; |
| 376 |
pub const MAX_BATTERY_STRING_SIZE: u32 = 128u32; |
| 377 |
pub const MonitorCapabilities: POWER_INFORMATION_LEVEL = 40i32; |
| 378 |
pub const MonitorInvocation: POWER_INFORMATION_LEVEL = 68i32; |
| 379 |
pub const MonitorRequestReasonAcDcDisplayBurst: POWER_MONITOR_REQUEST_REASON = 5i32; |
| 380 |
pub const MonitorRequestReasonAcDcDisplayBurstSuppressed: POWER_MONITOR_REQUEST_REASON = 28i32; |
| 381 |
pub const MonitorRequestReasonBatteryCountChange: POWER_MONITOR_REQUEST_REASON = 16i32; |
| 382 |
pub const MonitorRequestReasonBatteryCountChangeSuppressed: POWER_MONITOR_REQUEST_REASON = 49i32; |
| 383 |
pub const MonitorRequestReasonBatteryPreCritical: POWER_MONITOR_REQUEST_REASON = 53i32; |
| 384 |
pub const MonitorRequestReasonBuiltinPanel: POWER_MONITOR_REQUEST_REASON = 47i32; |
| 385 |
pub const MonitorRequestReasonDP: POWER_MONITOR_REQUEST_REASON = 19i32; |
| 386 |
pub const MonitorRequestReasonDim: POWER_MONITOR_REQUEST_REASON = 46i32; |
| 387 |
pub const MonitorRequestReasonDirectedDrips: POWER_MONITOR_REQUEST_REASON = 45i32; |
| 388 |
pub const MonitorRequestReasonDisplayRequiredUnDim: POWER_MONITOR_REQUEST_REASON = 48i32; |
| 389 |
pub const MonitorRequestReasonFullWake: POWER_MONITOR_REQUEST_REASON = 9i32; |
| 390 |
pub const MonitorRequestReasonGracePeriod: POWER_MONITOR_REQUEST_REASON = 17i32; |
| 391 |
pub const MonitorRequestReasonIdleTimeout: POWER_MONITOR_REQUEST_REASON = 12i32; |
| 392 |
pub const MonitorRequestReasonLid: POWER_MONITOR_REQUEST_REASON = 15i32; |
| 393 |
pub const MonitorRequestReasonMax: POWER_MONITOR_REQUEST_REASON = 55i32; |
| 394 |
pub const MonitorRequestReasonNearProximity: POWER_MONITOR_REQUEST_REASON = 22i32; |
| 395 |
pub const MonitorRequestReasonPdcSignal: POWER_MONITOR_REQUEST_REASON = 27i32; |
| 396 |
pub const MonitorRequestReasonPdcSignalFingerprint: POWER_MONITOR_REQUEST_REASON = 44i32; |
| 397 |
pub const MonitorRequestReasonPdcSignalHeyCortana: POWER_MONITOR_REQUEST_REASON = 42i32; |
| 398 |
pub const MonitorRequestReasonPdcSignalHolographicShell: POWER_MONITOR_REQUEST_REASON = 43i32; |
| 399 |
pub const MonitorRequestReasonPdcSignalSensorsHumanPresence: POWER_MONITOR_REQUEST_REASON = 52i32; |
| 400 |
pub const MonitorRequestReasonPdcSignalWindowsMobilePwrNotif: POWER_MONITOR_REQUEST_REASON = 40i32; |
| 401 |
pub const MonitorRequestReasonPdcSignalWindowsMobileShell: POWER_MONITOR_REQUEST_REASON = 41i32; |
| 402 |
pub const MonitorRequestReasonPnP: POWER_MONITOR_REQUEST_REASON = 18i32; |
| 403 |
pub const MonitorRequestReasonPoSetSystemState: POWER_MONITOR_REQUEST_REASON = 7i32; |
| 404 |
pub const MonitorRequestReasonPolicyChange: POWER_MONITOR_REQUEST_REASON = 13i32; |
| 405 |
pub const MonitorRequestReasonPowerButton: POWER_MONITOR_REQUEST_REASON = 1i32; |
| 406 |
pub const MonitorRequestReasonRemoteConnection: POWER_MONITOR_REQUEST_REASON = 2i32; |
| 407 |
pub const MonitorRequestReasonResumeModernStandby: POWER_MONITOR_REQUEST_REASON = 50i32; |
| 408 |
pub const MonitorRequestReasonResumePdc: POWER_MONITOR_REQUEST_REASON = 24i32; |
| 409 |
pub const MonitorRequestReasonResumeS4: POWER_MONITOR_REQUEST_REASON = 25i32; |
| 410 |
pub const MonitorRequestReasonScMonitorpower: POWER_MONITOR_REQUEST_REASON = 3i32; |
| 411 |
pub const MonitorRequestReasonScreenOffRequest: POWER_MONITOR_REQUEST_REASON = 11i32; |
| 412 |
pub const MonitorRequestReasonSessionUnlock: POWER_MONITOR_REQUEST_REASON = 10i32; |
| 413 |
pub const MonitorRequestReasonSetThreadExecutionState: POWER_MONITOR_REQUEST_REASON = 8i32; |
| 414 |
pub const MonitorRequestReasonSleepButton: POWER_MONITOR_REQUEST_REASON = 14i32; |
| 415 |
pub const MonitorRequestReasonSxTransition: POWER_MONITOR_REQUEST_REASON = 20i32; |
| 416 |
pub const MonitorRequestReasonSystemIdle: POWER_MONITOR_REQUEST_REASON = 21i32; |
| 417 |
pub const MonitorRequestReasonSystemStateEntered: POWER_MONITOR_REQUEST_REASON = 29i32; |
| 418 |
pub const MonitorRequestReasonTerminal: POWER_MONITOR_REQUEST_REASON = 26i32; |
| 419 |
pub const MonitorRequestReasonTerminalInit: POWER_MONITOR_REQUEST_REASON = 51i32; |
| 420 |
pub const MonitorRequestReasonThermalStandby: POWER_MONITOR_REQUEST_REASON = 23i32; |
| 421 |
pub const MonitorRequestReasonUnknown: POWER_MONITOR_REQUEST_REASON = 0i32; |
| 422 |
pub const MonitorRequestReasonUserDisplayBurst: POWER_MONITOR_REQUEST_REASON = 6i32; |
| 423 |
pub const MonitorRequestReasonUserInput: POWER_MONITOR_REQUEST_REASON = 4i32; |
| 424 |
pub const MonitorRequestReasonUserInputAccelerometer: POWER_MONITOR_REQUEST_REASON = 35i32; |
| 425 |
pub const MonitorRequestReasonUserInputHid: POWER_MONITOR_REQUEST_REASON = 36i32; |
| 426 |
pub const MonitorRequestReasonUserInputInitialization: POWER_MONITOR_REQUEST_REASON = 39i32; |
| 427 |
pub const MonitorRequestReasonUserInputKeyboard: POWER_MONITOR_REQUEST_REASON = 31i32; |
| 428 |
pub const MonitorRequestReasonUserInputMouse: POWER_MONITOR_REQUEST_REASON = 32i32; |
| 429 |
pub const MonitorRequestReasonUserInputPen: POWER_MONITOR_REQUEST_REASON = 34i32; |
| 430 |
pub const MonitorRequestReasonUserInputPoUserPresent: POWER_MONITOR_REQUEST_REASON = 37i32; |
| 431 |
pub const MonitorRequestReasonUserInputSessionSwitch: POWER_MONITOR_REQUEST_REASON = 38i32; |
| 432 |
pub const MonitorRequestReasonUserInputTouch: POWER_MONITOR_REQUEST_REASON = 54i32; |
| 433 |
pub const MonitorRequestReasonUserInputTouchpad: POWER_MONITOR_REQUEST_REASON = 33i32; |
| 434 |
pub const MonitorRequestReasonWinrt: POWER_MONITOR_REQUEST_REASON = 30i32; |
| 435 |
pub const MonitorRequestTypeOff: POWER_MONITOR_REQUEST_TYPE = 0i32; |
| 436 |
pub const MonitorRequestTypeOnAndPresent: POWER_MONITOR_REQUEST_TYPE = 1i32; |
| 437 |
pub const MonitorRequestTypeToggleOn: POWER_MONITOR_REQUEST_TYPE = 2i32; |
| 438 |
pub const NotifyUserModeLegacyPowerEvent: POWER_INFORMATION_LEVEL = 47i32; |
| 439 |
pub const NotifyUserPowerSetting: POWER_INFORMATION_LEVEL = 26i32; |
| 440 |
pub const PASSIVE_COOLING: u32 = 1u32; |
| 441 |
pub const PDCAP_S0_SUPPORTED: u32 = 65536u32; |
| 442 |
pub const PDCAP_S1_SUPPORTED: u32 = 131072u32; |
| 443 |
pub const PDCAP_S2_SUPPORTED: u32 = 262144u32; |
| 444 |
pub const PDCAP_S3_SUPPORTED: u32 = 524288u32; |
| 445 |
pub const PDCAP_S4_SUPPORTED: u32 = 16777216u32; |
| 446 |
pub const PDCAP_S5_SUPPORTED: u32 = 33554432u32; |
| 447 |
pub const PDCAP_WAKE_FROM_S0_SUPPORTED: u32 = 1048576u32; |
| 448 |
pub const PDCAP_WAKE_FROM_S1_SUPPORTED: u32 = 2097152u32; |
| 449 |
pub const PDCAP_WAKE_FROM_S2_SUPPORTED: u32 = 4194304u32; |
| 450 |
pub const PDCAP_WAKE_FROM_S3_SUPPORTED: u32 = 8388608u32; |
| 451 |
pub const POWER_ATTRIBUTE_HIDE: u32 = 1u32; |
| 452 |
pub const POWER_ATTRIBUTE_SHOW_AOAC: u32 = 2u32; |
| 453 |
pub const POWER_FORCE_TRIGGER_RESET: POWER_ACTION_POLICY_EVENT_CODE = 2147483648u32; |
| 454 |
pub const POWER_LEVEL_USER_NOTIFY_EXEC: POWER_ACTION_POLICY_EVENT_CODE = 4u32; |
| 455 |
pub const POWER_LEVEL_USER_NOTIFY_SOUND: POWER_ACTION_POLICY_EVENT_CODE = 2u32; |
| 456 |
pub const POWER_LEVEL_USER_NOTIFY_TEXT: POWER_ACTION_POLICY_EVENT_CODE = 1u32; |
| 457 |
pub const POWER_PLATFORM_ROLE_V1: POWER_PLATFORM_ROLE_VERSION = 1u32; |
| 458 |
pub const POWER_PLATFORM_ROLE_V2: POWER_PLATFORM_ROLE_VERSION = 2u32; |
| 459 |
pub const POWER_USER_NOTIFY_BUTTON: POWER_ACTION_POLICY_EVENT_CODE = 8u32; |
| 460 |
pub const POWER_USER_NOTIFY_SHUTDOWN: POWER_ACTION_POLICY_EVENT_CODE = 16u32; |
| 461 |
pub const PO_TZ_ACTIVE: POWER_COOLING_MODE = 0u16; |
| 462 |
pub const PO_TZ_INVALID_MODE: POWER_COOLING_MODE = 2u16; |
| 463 |
pub const PO_TZ_PASSIVE: POWER_COOLING_MODE = 1u16; |
| 464 |
pub const PPM_FIRMWARE_ACPI1C2: u32 = 1u32; |
| 465 |
pub const PPM_FIRMWARE_ACPI1C3: u32 = 2u32; |
| 466 |
pub const PPM_FIRMWARE_ACPI1TSTATES: u32 = 4u32; |
| 467 |
pub const PPM_FIRMWARE_CPC: u32 = 262144u32; |
| 468 |
pub const PPM_FIRMWARE_CSD: u32 = 16u32; |
| 469 |
pub const PPM_FIRMWARE_CST: u32 = 8u32; |
| 470 |
pub const PPM_FIRMWARE_LPI: u32 = 524288u32; |
| 471 |
pub const PPM_FIRMWARE_OSC: u32 = 65536u32; |
| 472 |
pub const PPM_FIRMWARE_PCCH: u32 = 16384u32; |
| 473 |
pub const PPM_FIRMWARE_PCCP: u32 = 32768u32; |
| 474 |
pub const PPM_FIRMWARE_PCT: u32 = 32u32; |
| 475 |
pub const PPM_FIRMWARE_PDC: u32 = 131072u32; |
| 476 |
pub const PPM_FIRMWARE_PPC: u32 = 256u32; |
| 477 |
pub const PPM_FIRMWARE_PSD: u32 = 512u32; |
| 478 |
pub const PPM_FIRMWARE_PSS: u32 = 64u32; |
| 479 |
pub const PPM_FIRMWARE_PTC: u32 = 1024u32; |
| 480 |
pub const PPM_FIRMWARE_TPC: u32 = 4096u32; |
| 481 |
pub const PPM_FIRMWARE_TSD: u32 = 8192u32; |
| 482 |
pub const PPM_FIRMWARE_TSS: u32 = 2048u32; |
| 483 |
pub const PPM_FIRMWARE_XPSS: u32 = 128u32; |
| 484 |
pub const PPM_IDLESTATES_DATA_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xba138e10_e250_4ad7_8616_cf1a7ad410e7); |
| 485 |
pub const PPM_IDLESTATE_CHANGE_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4838fe4f_f71c_4e51_9ecc_8430a7ac4c6c); |
| 486 |
pub const PPM_IDLE_ACCOUNTING_EX_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd67abd39_81f8_4a5e_8152_72e31ec912ee); |
| 487 |
pub const PPM_IDLE_ACCOUNTING_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xe2a26f78_ae07_4ee0_a30f_ce54f55a94cd); |
| 488 |
pub const PPM_IDLE_IMPLEMENTATION_CSTATES: u32 = 1u32; |
| 489 |
pub const PPM_IDLE_IMPLEMENTATION_LPISTATES: u32 = 4u32; |
| 490 |
pub const PPM_IDLE_IMPLEMENTATION_MICROPEP: u32 = 3u32; |
| 491 |
pub const PPM_IDLE_IMPLEMENTATION_NONE: u32 = 0u32; |
| 492 |
pub const PPM_IDLE_IMPLEMENTATION_PEP: u32 = 2u32; |
| 493 |
pub const PPM_PERFMON_PERFSTATE_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x7fd18652_0cfe_40d2_b0a1_0b066a87759e); |
| 494 |
pub const PPM_PERFORMANCE_IMPLEMENTATION_CPPC: u32 = 3u32; |
| 495 |
pub const PPM_PERFORMANCE_IMPLEMENTATION_NONE: u32 = 0u32; |
| 496 |
pub const PPM_PERFORMANCE_IMPLEMENTATION_PCCV1: u32 = 2u32; |
| 497 |
pub const PPM_PERFORMANCE_IMPLEMENTATION_PEP: u32 = 4u32; |
| 498 |
pub const PPM_PERFORMANCE_IMPLEMENTATION_PSTATES: u32 = 1u32; |
| 499 |
pub const PPM_PERFSTATES_DATA_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x5708cc20_7d40_4bf4_b4aa_2b01338d0126); |
| 500 |
pub const PPM_PERFSTATE_CHANGE_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa5b32ddd_7f39_4abc_b892_900e43b59ebb); |
| 501 |
pub const PPM_PERFSTATE_DOMAIN_CHANGE_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x995e6b7f_d653_497a_b978_36a30c29bf01); |
| 502 |
pub const PPM_THERMALCONSTRAINT_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa852c2c8_1a4c_423b_8c2c_f30d82931a88); |
| 503 |
pub const PPM_THERMAL_POLICY_CHANGE_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x48f377b8_6880_4c7b_8bdc_380176c6654d); |
| 504 |
#[doc = "Required features: `\"Win32_Devices_Properties\"`"] |
| 505 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 506 |
pub const PROCESSOR_NUMBER_PKEY: super::super::Devices::Properties::DEVPROPKEY = super::super::Devices::Properties::DEVPROPKEY { fmtid: ::windows_sys::core::GUID::from_u128(0x5724c81d_d5af_4c1f_a103_a06e28f204c6), pid: 1 }; |
| 507 |
pub const PdcInvocation: POWER_INFORMATION_LEVEL = 67i32; |
| 508 |
pub const PhysicalPowerButtonPress: POWER_INFORMATION_LEVEL = 90i32; |
| 509 |
pub const PlatformIdleStates: POWER_INFORMATION_LEVEL = 80i32; |
| 510 |
pub const PlatformIdleVeto: POWER_INFORMATION_LEVEL = 82i32; |
| 511 |
pub const PlatformInformation: POWER_INFORMATION_LEVEL = 66i32; |
| 512 |
pub const PlatformRole: POWER_INFORMATION_LEVEL = 75i32; |
| 513 |
pub const PlatformRoleAppliancePC: POWER_PLATFORM_ROLE = 6i32; |
| 514 |
pub const PlatformRoleDesktop: POWER_PLATFORM_ROLE = 1i32; |
| 515 |
pub const PlatformRoleEnterpriseServer: POWER_PLATFORM_ROLE = 4i32; |
| 516 |
pub const PlatformRoleMaximum: POWER_PLATFORM_ROLE = 9i32; |
| 517 |
pub const PlatformRoleMobile: POWER_PLATFORM_ROLE = 2i32; |
| 518 |
pub const PlatformRolePerformanceServer: POWER_PLATFORM_ROLE = 7i32; |
| 519 |
pub const PlatformRoleSOHOServer: POWER_PLATFORM_ROLE = 5i32; |
| 520 |
pub const PlatformRoleSlate: POWER_PLATFORM_ROLE = 8i32; |
| 521 |
pub const PlatformRoleUnspecified: POWER_PLATFORM_ROLE = 0i32; |
| 522 |
pub const PlatformRoleWorkstation: POWER_PLATFORM_ROLE = 3i32; |
| 523 |
pub const PlmPowerRequestCreate: POWER_INFORMATION_LEVEL = 72i32; |
| 524 |
pub const PoAc: SYSTEM_POWER_CONDITION = 0i32; |
| 525 |
pub const PoConditionMaximum: SYSTEM_POWER_CONDITION = 3i32; |
| 526 |
pub const PoDc: SYSTEM_POWER_CONDITION = 1i32; |
| 527 |
pub const PoHot: SYSTEM_POWER_CONDITION = 2i32; |
| 528 |
pub const PowerActionDisplayOff: POWER_ACTION = 8i32; |
| 529 |
pub const PowerActionHibernate: POWER_ACTION = 3i32; |
| 530 |
pub const PowerActionNone: POWER_ACTION = 0i32; |
| 531 |
pub const PowerActionReserved: POWER_ACTION = 1i32; |
| 532 |
pub const PowerActionShutdown: POWER_ACTION = 4i32; |
| 533 |
pub const PowerActionShutdownOff: POWER_ACTION = 6i32; |
| 534 |
pub const PowerActionShutdownReset: POWER_ACTION = 5i32; |
| 535 |
pub const PowerActionSleep: POWER_ACTION = 2i32; |
| 536 |
pub const PowerActionWarmEject: POWER_ACTION = 7i32; |
| 537 |
pub const PowerDeviceD0: DEVICE_POWER_STATE = 1i32; |
| 538 |
pub const PowerDeviceD1: DEVICE_POWER_STATE = 2i32; |
| 539 |
pub const PowerDeviceD2: DEVICE_POWER_STATE = 3i32; |
| 540 |
pub const PowerDeviceD3: DEVICE_POWER_STATE = 4i32; |
| 541 |
pub const PowerDeviceMaximum: DEVICE_POWER_STATE = 5i32; |
| 542 |
pub const PowerDeviceUnspecified: DEVICE_POWER_STATE = 0i32; |
| 543 |
pub const PowerInformationInternal: POWER_INFORMATION_LEVEL = 87i32; |
| 544 |
pub const PowerInformationLevelMaximum: POWER_INFORMATION_LEVEL = 98i32; |
| 545 |
pub const PowerInformationLevelUnused0: POWER_INFORMATION_LEVEL = 27i32; |
| 546 |
pub const PowerRequestAction: POWER_INFORMATION_LEVEL = 44i32; |
| 547 |
pub const PowerRequestActionInternal: POWER_INFORMATION_LEVEL = 85i32; |
| 548 |
pub const PowerRequestAwayModeRequired: POWER_REQUEST_TYPE = 2i32; |
| 549 |
pub const PowerRequestCreate: POWER_INFORMATION_LEVEL = 43i32; |
| 550 |
pub const PowerRequestDisplayRequired: POWER_REQUEST_TYPE = 0i32; |
| 551 |
pub const PowerRequestExecutionRequired: POWER_REQUEST_TYPE = 3i32; |
| 552 |
pub const PowerRequestSystemRequired: POWER_REQUEST_TYPE = 1i32; |
| 553 |
pub const PowerSettingNotificationName: POWER_INFORMATION_LEVEL = 58i32; |
| 554 |
pub const PowerShutdownNotification: POWER_INFORMATION_LEVEL = 39i32; |
| 555 |
pub const PowerSystemHibernate: SYSTEM_POWER_STATE = 5i32; |
| 556 |
pub const PowerSystemMaximum: SYSTEM_POWER_STATE = 7i32; |
| 557 |
pub const PowerSystemShutdown: SYSTEM_POWER_STATE = 6i32; |
| 558 |
pub const PowerSystemSleeping1: SYSTEM_POWER_STATE = 2i32; |
| 559 |
pub const PowerSystemSleeping2: SYSTEM_POWER_STATE = 3i32; |
| 560 |
pub const PowerSystemSleeping3: SYSTEM_POWER_STATE = 4i32; |
| 561 |
pub const PowerSystemUnspecified: SYSTEM_POWER_STATE = 0i32; |
| 562 |
pub const PowerSystemWorking: SYSTEM_POWER_STATE = 1i32; |
| 563 |
pub const PowerUserInactive: USER_ACTIVITY_PRESENCE = 2i32; |
| 564 |
pub const PowerUserInvalid: USER_ACTIVITY_PRESENCE = 3i32; |
| 565 |
pub const PowerUserMaximum: USER_ACTIVITY_PRESENCE = 3i32; |
| 566 |
pub const PowerUserNotPresent: USER_ACTIVITY_PRESENCE = 1i32; |
| 567 |
pub const PowerUserPresent: USER_ACTIVITY_PRESENCE = 0i32; |
| 568 |
pub const ProcessorCap: POWER_INFORMATION_LEVEL = 34i32; |
| 569 |
pub const ProcessorIdleDomains: POWER_INFORMATION_LEVEL = 49i32; |
| 570 |
pub const ProcessorIdleStates: POWER_INFORMATION_LEVEL = 33i32; |
| 571 |
pub const ProcessorIdleStatesHv: POWER_INFORMATION_LEVEL = 52i32; |
| 572 |
pub const ProcessorIdleVeto: POWER_INFORMATION_LEVEL = 81i32; |
| 573 |
pub const ProcessorInformation: POWER_INFORMATION_LEVEL = 11i32; |
| 574 |
pub const ProcessorInformationEx: POWER_INFORMATION_LEVEL = 46i32; |
| 575 |
pub const ProcessorLoad: POWER_INFORMATION_LEVEL = 38i32; |
| 576 |
pub const ProcessorPerfCapHv: POWER_INFORMATION_LEVEL = 54i32; |
| 577 |
pub const ProcessorPerfStates: POWER_INFORMATION_LEVEL = 32i32; |
| 578 |
pub const ProcessorPerfStatesHv: POWER_INFORMATION_LEVEL = 53i32; |
| 579 |
pub const ProcessorPowerPolicyAc: POWER_INFORMATION_LEVEL = 18i32; |
| 580 |
pub const ProcessorPowerPolicyCurrent: POWER_INFORMATION_LEVEL = 22i32; |
| 581 |
pub const ProcessorPowerPolicyDc: POWER_INFORMATION_LEVEL = 19i32; |
| 582 |
pub const ProcessorSetIdle: POWER_INFORMATION_LEVEL = 55i32; |
| 583 |
pub const ProcessorStateHandler: POWER_INFORMATION_LEVEL = 7i32; |
| 584 |
pub const ProcessorStateHandler2: POWER_INFORMATION_LEVEL = 13i32; |
| 585 |
pub const QueryPotentialDripsConstraint: POWER_INFORMATION_LEVEL = 91i32; |
| 586 |
pub const RegisterSpmPowerSettings: POWER_INFORMATION_LEVEL = 79i32; |
| 587 |
pub const SYS_BUTTON_LID: u32 = 4u32; |
| 588 |
pub const SYS_BUTTON_LID_CHANGED: u32 = 524288u32; |
| 589 |
pub const SYS_BUTTON_LID_CLOSED: u32 = 131072u32; |
| 590 |
pub const SYS_BUTTON_LID_INITIAL: u32 = 262144u32; |
| 591 |
pub const SYS_BUTTON_LID_OPEN: u32 = 65536u32; |
| 592 |
pub const SYS_BUTTON_LID_STATE_MASK: u32 = 196608u32; |
| 593 |
pub const SYS_BUTTON_POWER: u32 = 1u32; |
| 594 |
pub const SYS_BUTTON_SLEEP: u32 = 2u32; |
| 595 |
pub const SYS_BUTTON_WAKE: u32 = 2147483648u32; |
| 596 |
pub const ScreenOff: POWER_INFORMATION_LEVEL = 73i32; |
| 597 |
pub const SendSuspendResumeNotification: POWER_INFORMATION_LEVEL = 96i32; |
| 598 |
pub const SessionAllowExternalDmaDevices: POWER_INFORMATION_LEVEL = 95i32; |
| 599 |
pub const SessionConnectNotification: POWER_INFORMATION_LEVEL = 62i32; |
| 600 |
pub const SessionDisplayState: POWER_INFORMATION_LEVEL = 42i32; |
| 601 |
pub const SessionLockState: POWER_INFORMATION_LEVEL = 64i32; |
| 602 |
pub const SessionPowerCleanup: POWER_INFORMATION_LEVEL = 63i32; |
| 603 |
pub const SessionPowerInit: POWER_INFORMATION_LEVEL = 41i32; |
| 604 |
pub const SessionRITState: POWER_INFORMATION_LEVEL = 61i32; |
| 605 |
pub const SetPowerSettingValue: POWER_INFORMATION_LEVEL = 25i32; |
| 606 |
pub const SetShutdownSelectedTime: POWER_INFORMATION_LEVEL = 70i32; |
| 607 |
pub const SuspendResumeInvocation: POWER_INFORMATION_LEVEL = 71i32; |
| 608 |
pub const SystemBatteryState: POWER_INFORMATION_LEVEL = 5i32; |
| 609 |
pub const SystemBatteryStatePrecise: POWER_INFORMATION_LEVEL = 83i32; |
| 610 |
pub const SystemExecutionState: POWER_INFORMATION_LEVEL = 16i32; |
| 611 |
pub const SystemHiberFileInformation: POWER_INFORMATION_LEVEL = 36i32; |
| 612 |
pub const SystemHiberFileSize: POWER_INFORMATION_LEVEL = 51i32; |
| 613 |
pub const SystemHiberFileType: POWER_INFORMATION_LEVEL = 89i32; |
| 614 |
pub const SystemHiberbootState: POWER_INFORMATION_LEVEL = 65i32; |
| 615 |
pub const SystemMonitorHiberBootPowerOff: POWER_INFORMATION_LEVEL = 28i32; |
| 616 |
pub const SystemPowerCapabilities: POWER_INFORMATION_LEVEL = 4i32; |
| 617 |
pub const SystemPowerInformation: POWER_INFORMATION_LEVEL = 12i32; |
| 618 |
pub const SystemPowerLoggingEntry: POWER_INFORMATION_LEVEL = 24i32; |
| 619 |
pub const SystemPowerPolicyAc: POWER_INFORMATION_LEVEL = 0i32; |
| 620 |
pub const SystemPowerPolicyCurrent: POWER_INFORMATION_LEVEL = 8i32; |
| 621 |
pub const SystemPowerPolicyDc: POWER_INFORMATION_LEVEL = 1i32; |
| 622 |
pub const SystemPowerStateHandler: POWER_INFORMATION_LEVEL = 6i32; |
| 623 |
pub const SystemPowerStateLogging: POWER_INFORMATION_LEVEL = 23i32; |
| 624 |
pub const SystemPowerStateNotifyHandler: POWER_INFORMATION_LEVEL = 17i32; |
| 625 |
pub const SystemReserveHiberFile: POWER_INFORMATION_LEVEL = 10i32; |
| 626 |
pub const SystemVideoState: POWER_INFORMATION_LEVEL = 29i32; |
| 627 |
pub const SystemWakeSource: POWER_INFORMATION_LEVEL = 35i32; |
| 628 |
pub const THERMAL_COOLING_INTERFACE_VERSION: u32 = 1u32; |
| 629 |
pub const THERMAL_DEVICE_INTERFACE_VERSION: u32 = 1u32; |
| 630 |
pub const THERMAL_EVENT_VERSION: u32 = 1u32; |
| 631 |
pub const THERMAL_POLICY_VERSION_1: u32 = 1u32; |
| 632 |
pub const THERMAL_POLICY_VERSION_2: u32 = 2u32; |
| 633 |
pub const TZ_ACTIVATION_REASON_CURRENT: u32 = 2u32; |
| 634 |
pub const TZ_ACTIVATION_REASON_THERMAL: u32 = 1u32; |
| 635 |
pub const ThermalEvent: POWER_INFORMATION_LEVEL = 84i32; |
| 636 |
pub const ThermalStandby: POWER_INFORMATION_LEVEL = 88i32; |
| 637 |
pub const TraceApplicationPowerMessage: POWER_INFORMATION_LEVEL = 30i32; |
| 638 |
pub const TraceApplicationPowerMessageEnd: POWER_INFORMATION_LEVEL = 31i32; |
| 639 |
pub const TraceServicePowerMessage: POWER_INFORMATION_LEVEL = 37i32; |
| 640 |
pub const UNKNOWN_CAPACITY: u32 = 4294967295u32; |
| 641 |
pub const UNKNOWN_CURRENT: u32 = 4294967295u32; |
| 642 |
pub const UNKNOWN_RATE: u32 = 2147483648u32; |
| 643 |
pub const UNKNOWN_VOLTAGE: u32 = 4294967295u32; |
| 644 |
pub const UpdateBlackBoxRecorder: POWER_INFORMATION_LEVEL = 94i32; |
| 645 |
pub const UsbChargerPort_Legacy: USB_CHARGER_PORT = 0i32; |
| 646 |
pub const UsbChargerPort_Max: USB_CHARGER_PORT = 2i32; |
| 647 |
pub const UsbChargerPort_TypeC: USB_CHARGER_PORT = 1i32; |
| 648 |
pub const UserNotPresent: POWER_USER_PRESENCE_TYPE = 0i32; |
| 649 |
pub const UserPresence: POWER_INFORMATION_LEVEL = 57i32; |
| 650 |
pub const UserPresent: POWER_USER_PRESENCE_TYPE = 1i32; |
| 651 |
pub const UserUnknown: POWER_USER_PRESENCE_TYPE = 255i32; |
| 652 |
pub const VerifyProcessorPowerPolicyAc: POWER_INFORMATION_LEVEL = 20i32; |
| 653 |
pub const VerifyProcessorPowerPolicyDc: POWER_INFORMATION_LEVEL = 21i32; |
| 654 |
pub const VerifySystemPolicyAc: POWER_INFORMATION_LEVEL = 2i32; |
| 655 |
pub const VerifySystemPolicyDc: POWER_INFORMATION_LEVEL = 3i32; |
| 656 |
pub const WakeTimerList: POWER_INFORMATION_LEVEL = 50i32; |
| 657 |
pub type ACPI_TIME_RESOLUTION = i32; |
| 658 |
pub type BATTERY_CHARGING_SOURCE_TYPE = i32; |
| 659 |
pub type BATTERY_QUERY_INFORMATION_LEVEL = i32; |
| 660 |
pub type BATTERY_SET_INFORMATION_LEVEL = i32; |
| 661 |
pub type DEVICE_POWER_STATE = i32; |
| 662 |
pub type EFFECTIVE_POWER_MODE = i32; |
| 663 |
pub type EMI_MEASUREMENT_UNIT = i32; |
| 664 |
pub type EXECUTION_STATE = u32; |
| 665 |
pub type LATENCY_TIME = i32; |
| 666 |
pub type POWER_ACTION = i32; |
| 667 |
pub type POWER_ACTION_POLICY_EVENT_CODE = u32; |
| 668 |
pub type POWER_COOLING_MODE = u16; |
| 669 |
pub type POWER_DATA_ACCESSOR = i32; |
| 670 |
pub type POWER_INFORMATION_LEVEL = i32; |
| 671 |
pub type POWER_MONITOR_REQUEST_REASON = i32; |
| 672 |
pub type POWER_MONITOR_REQUEST_TYPE = i32; |
| 673 |
pub type POWER_PLATFORM_ROLE = i32; |
| 674 |
pub type POWER_PLATFORM_ROLE_VERSION = u32; |
| 675 |
pub type POWER_REQUEST_TYPE = i32; |
| 676 |
pub type POWER_SETTING_ALTITUDE = i32; |
| 677 |
pub type POWER_USER_PRESENCE_TYPE = i32; |
| 678 |
pub type SYSTEM_POWER_CONDITION = i32; |
| 679 |
pub type SYSTEM_POWER_STATE = i32; |
| 680 |
pub type USB_CHARGER_PORT = i32; |
| 681 |
pub type USER_ACTIVITY_PRESENCE = i32; |
| 682 |
#[repr(C)] |
| 683 |
pub struct ACPI_REAL_TIME { |
| 684 |
pub Year: u16, |
| 685 |
pub Month: u8, |
| 686 |
pub Day: u8, |
| 687 |
pub Hour: u8, |
| 688 |
pub Minute: u8, |
| 689 |
pub Second: u8, |
| 690 |
pub Valid: u8, |
| 691 |
pub Milliseconds: u16, |
| 692 |
pub TimeZone: i16, |
| 693 |
pub DayLight: u8, |
| 694 |
pub Reserved1: [u8; 3], |
| 695 |
} |
| 696 |
impl ::core::marker::Copy for ACPI_REAL_TIME {} |
| 697 |
impl ::core::clone::Clone for ACPI_REAL_TIME { |
| 698 |
fn clone(&self) -> Self { |
| 699 |
*self |
| 700 |
} |
| 701 |
} |
| 702 |
#[repr(C)] |
| 703 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 704 |
#[cfg(feature = "Win32_Foundation")] |
| 705 |
pub struct ACPI_TIME_AND_ALARM_CAPABILITIES { |
| 706 |
pub AcWakeSupported: super::super::Foundation::BOOLEAN, |
| 707 |
pub DcWakeSupported: super::super::Foundation::BOOLEAN, |
| 708 |
pub S4AcWakeSupported: super::super::Foundation::BOOLEAN, |
| 709 |
pub S4DcWakeSupported: super::super::Foundation::BOOLEAN, |
| 710 |
pub S5AcWakeSupported: super::super::Foundation::BOOLEAN, |
| 711 |
pub S5DcWakeSupported: super::super::Foundation::BOOLEAN, |
| 712 |
pub S4S5WakeStatusSupported: super::super::Foundation::BOOLEAN, |
| 713 |
pub DeepestWakeSystemState: u32, |
| 714 |
pub RealTimeFeaturesSupported: super::super::Foundation::BOOLEAN, |
| 715 |
pub RealTimeResolution: ACPI_TIME_RESOLUTION, |
| 716 |
} |
| 717 |
#[cfg(feature = "Win32_Foundation")] |
| 718 |
impl ::core::marker::Copy for ACPI_TIME_AND_ALARM_CAPABILITIES {} |
| 719 |
#[cfg(feature = "Win32_Foundation")] |
| 720 |
impl ::core::clone::Clone for ACPI_TIME_AND_ALARM_CAPABILITIES { |
| 721 |
fn clone(&self) -> Self { |
| 722 |
*self |
| 723 |
} |
| 724 |
} |
| 725 |
#[repr(C)] |
| 726 |
pub struct ADMINISTRATOR_POWER_POLICY { |
| 727 |
pub MinSleep: SYSTEM_POWER_STATE, |
| 728 |
pub MaxSleep: SYSTEM_POWER_STATE, |
| 729 |
pub MinVideoTimeout: u32, |
| 730 |
pub MaxVideoTimeout: u32, |
| 731 |
pub MinSpindownTimeout: u32, |
| 732 |
pub MaxSpindownTimeout: u32, |
| 733 |
} |
| 734 |
impl ::core::marker::Copy for ADMINISTRATOR_POWER_POLICY {} |
| 735 |
impl ::core::clone::Clone for ADMINISTRATOR_POWER_POLICY { |
| 736 |
fn clone(&self) -> Self { |
| 737 |
*self |
| 738 |
} |
| 739 |
} |
| 740 |
#[repr(C)] |
| 741 |
pub struct BATTERY_CHARGER_STATUS { |
| 742 |
pub Type: BATTERY_CHARGING_SOURCE_TYPE, |
| 743 |
pub VaData: [u32; 1], |
| 744 |
} |
| 745 |
impl ::core::marker::Copy for BATTERY_CHARGER_STATUS {} |
| 746 |
impl ::core::clone::Clone for BATTERY_CHARGER_STATUS { |
| 747 |
fn clone(&self) -> Self { |
| 748 |
*self |
| 749 |
} |
| 750 |
} |
| 751 |
#[repr(C)] |
| 752 |
pub struct BATTERY_CHARGING_SOURCE { |
| 753 |
pub Type: BATTERY_CHARGING_SOURCE_TYPE, |
| 754 |
pub MaxCurrent: u32, |
| 755 |
} |
| 756 |
impl ::core::marker::Copy for BATTERY_CHARGING_SOURCE {} |
| 757 |
impl ::core::clone::Clone for BATTERY_CHARGING_SOURCE { |
| 758 |
fn clone(&self) -> Self { |
| 759 |
*self |
| 760 |
} |
| 761 |
} |
| 762 |
#[repr(C)] |
| 763 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 764 |
#[cfg(feature = "Win32_Foundation")] |
| 765 |
pub struct BATTERY_CHARGING_SOURCE_INFORMATION { |
| 766 |
pub Type: BATTERY_CHARGING_SOURCE_TYPE, |
| 767 |
pub SourceOnline: super::super::Foundation::BOOLEAN, |
| 768 |
} |
| 769 |
#[cfg(feature = "Win32_Foundation")] |
| 770 |
impl ::core::marker::Copy for BATTERY_CHARGING_SOURCE_INFORMATION {} |
| 771 |
#[cfg(feature = "Win32_Foundation")] |
| 772 |
impl ::core::clone::Clone for BATTERY_CHARGING_SOURCE_INFORMATION { |
| 773 |
fn clone(&self) -> Self { |
| 774 |
*self |
| 775 |
} |
| 776 |
} |
| 777 |
#[repr(C)] |
| 778 |
pub struct BATTERY_INFORMATION { |
| 779 |
pub Capabilities: u32, |
| 780 |
pub Technology: u8, |
| 781 |
pub Reserved: [u8; 3], |
| 782 |
pub Chemistry: [u8; 4], |
| 783 |
pub DesignedCapacity: u32, |
| 784 |
pub FullChargedCapacity: u32, |
| 785 |
pub DefaultAlert1: u32, |
| 786 |
pub DefaultAlert2: u32, |
| 787 |
pub CriticalBias: u32, |
| 788 |
pub CycleCount: u32, |
| 789 |
} |
| 790 |
impl ::core::marker::Copy for BATTERY_INFORMATION {} |
| 791 |
impl ::core::clone::Clone for BATTERY_INFORMATION { |
| 792 |
fn clone(&self) -> Self { |
| 793 |
*self |
| 794 |
} |
| 795 |
} |
| 796 |
#[repr(C)] |
| 797 |
pub struct BATTERY_MANUFACTURE_DATE { |
| 798 |
pub Day: u8, |
| 799 |
pub Month: u8, |
| 800 |
pub Year: u16, |
| 801 |
} |
| 802 |
impl ::core::marker::Copy for BATTERY_MANUFACTURE_DATE {} |
| 803 |
impl ::core::clone::Clone for BATTERY_MANUFACTURE_DATE { |
| 804 |
fn clone(&self) -> Self { |
| 805 |
*self |
| 806 |
} |
| 807 |
} |
| 808 |
#[repr(C)] |
| 809 |
pub struct BATTERY_QUERY_INFORMATION { |
| 810 |
pub BatteryTag: u32, |
| 811 |
pub InformationLevel: BATTERY_QUERY_INFORMATION_LEVEL, |
| 812 |
pub AtRate: u32, |
| 813 |
} |
| 814 |
impl ::core::marker::Copy for BATTERY_QUERY_INFORMATION {} |
| 815 |
impl ::core::clone::Clone for BATTERY_QUERY_INFORMATION { |
| 816 |
fn clone(&self) -> Self { |
| 817 |
*self |
| 818 |
} |
| 819 |
} |
| 820 |
#[repr(C)] |
| 821 |
pub struct BATTERY_REPORTING_SCALE { |
| 822 |
pub Granularity: u32, |
| 823 |
pub Capacity: u32, |
| 824 |
} |
| 825 |
impl ::core::marker::Copy for BATTERY_REPORTING_SCALE {} |
| 826 |
impl ::core::clone::Clone for BATTERY_REPORTING_SCALE { |
| 827 |
fn clone(&self) -> Self { |
| 828 |
*self |
| 829 |
} |
| 830 |
} |
| 831 |
#[repr(C)] |
| 832 |
pub struct BATTERY_SET_INFORMATION { |
| 833 |
pub BatteryTag: u32, |
| 834 |
pub InformationLevel: BATTERY_SET_INFORMATION_LEVEL, |
| 835 |
pub Buffer: [u8; 1], |
| 836 |
} |
| 837 |
impl ::core::marker::Copy for BATTERY_SET_INFORMATION {} |
| 838 |
impl ::core::clone::Clone for BATTERY_SET_INFORMATION { |
| 839 |
fn clone(&self) -> Self { |
| 840 |
*self |
| 841 |
} |
| 842 |
} |
| 843 |
#[repr(C)] |
| 844 |
pub struct BATTERY_STATUS { |
| 845 |
pub PowerState: u32, |
| 846 |
pub Capacity: u32, |
| 847 |
pub Voltage: u32, |
| 848 |
pub Rate: i32, |
| 849 |
} |
| 850 |
impl ::core::marker::Copy for BATTERY_STATUS {} |
| 851 |
impl ::core::clone::Clone for BATTERY_STATUS { |
| 852 |
fn clone(&self) -> Self { |
| 853 |
*self |
| 854 |
} |
| 855 |
} |
| 856 |
#[repr(C)] |
| 857 |
pub struct BATTERY_USB_CHARGER_STATUS { |
| 858 |
pub Type: BATTERY_CHARGING_SOURCE_TYPE, |
| 859 |
pub Reserved: u32, |
| 860 |
pub Flags: u32, |
| 861 |
pub MaxCurrent: u32, |
| 862 |
pub Voltage: u32, |
| 863 |
pub PortType: USB_CHARGER_PORT, |
| 864 |
pub PortId: u64, |
| 865 |
pub PowerSourceInformation: *mut ::core::ffi::c_void, |
| 866 |
pub OemCharger: ::windows_sys::core::GUID, |
| 867 |
} |
| 868 |
impl ::core::marker::Copy for BATTERY_USB_CHARGER_STATUS {} |
| 869 |
impl ::core::clone::Clone for BATTERY_USB_CHARGER_STATUS { |
| 870 |
fn clone(&self) -> Self { |
| 871 |
*self |
| 872 |
} |
| 873 |
} |
| 874 |
#[repr(C)] |
| 875 |
pub struct BATTERY_WAIT_STATUS { |
| 876 |
pub BatteryTag: u32, |
| 877 |
pub Timeout: u32, |
| 878 |
pub PowerState: u32, |
| 879 |
pub LowCapacity: u32, |
| 880 |
pub HighCapacity: u32, |
| 881 |
} |
| 882 |
impl ::core::marker::Copy for BATTERY_WAIT_STATUS {} |
| 883 |
impl ::core::clone::Clone for BATTERY_WAIT_STATUS { |
| 884 |
fn clone(&self) -> Self { |
| 885 |
*self |
| 886 |
} |
| 887 |
} |
| 888 |
#[repr(C)] |
| 889 |
pub struct CM_POWER_DATA { |
| 890 |
pub PD_Size: u32, |
| 891 |
pub PD_MostRecentPowerState: DEVICE_POWER_STATE, |
| 892 |
pub PD_Capabilities: u32, |
| 893 |
pub PD_D1Latency: u32, |
| 894 |
pub PD_D2Latency: u32, |
| 895 |
pub PD_D3Latency: u32, |
| 896 |
pub PD_PowerStateMapping: [DEVICE_POWER_STATE; 7], |
| 897 |
pub PD_DeepestSystemWake: SYSTEM_POWER_STATE, |
| 898 |
} |
| 899 |
impl ::core::marker::Copy for CM_POWER_DATA {} |
| 900 |
impl ::core::clone::Clone for CM_POWER_DATA { |
| 901 |
fn clone(&self) -> Self { |
| 902 |
*self |
| 903 |
} |
| 904 |
} |
| 905 |
#[repr(C)] |
| 906 |
pub struct DEVICE_NOTIFY_SUBSCRIBE_PARAMETERS { |
| 907 |
pub Callback: PDEVICE_NOTIFY_CALLBACK_ROUTINE, |
| 908 |
pub Context: *mut ::core::ffi::c_void, |
| 909 |
} |
| 910 |
impl ::core::marker::Copy for DEVICE_NOTIFY_SUBSCRIBE_PARAMETERS {} |
| 911 |
impl ::core::clone::Clone for DEVICE_NOTIFY_SUBSCRIBE_PARAMETERS { |
| 912 |
fn clone(&self) -> Self { |
| 913 |
*self |
| 914 |
} |
| 915 |
} |
| 916 |
#[repr(C)] |
| 917 |
pub struct EMI_CHANNEL_MEASUREMENT_DATA { |
| 918 |
pub AbsoluteEnergy: u64, |
| 919 |
pub AbsoluteTime: u64, |
| 920 |
} |
| 921 |
impl ::core::marker::Copy for EMI_CHANNEL_MEASUREMENT_DATA {} |
| 922 |
impl ::core::clone::Clone for EMI_CHANNEL_MEASUREMENT_DATA { |
| 923 |
fn clone(&self) -> Self { |
| 924 |
*self |
| 925 |
} |
| 926 |
} |
| 927 |
#[repr(C)] |
| 928 |
pub struct EMI_CHANNEL_V2 { |
| 929 |
pub MeasurementUnit: EMI_MEASUREMENT_UNIT, |
| 930 |
pub ChannelNameSize: u16, |
| 931 |
pub ChannelName: [u16; 1], |
| 932 |
} |
| 933 |
impl ::core::marker::Copy for EMI_CHANNEL_V2 {} |
| 934 |
impl ::core::clone::Clone for EMI_CHANNEL_V2 { |
| 935 |
fn clone(&self) -> Self { |
| 936 |
*self |
| 937 |
} |
| 938 |
} |
| 939 |
#[repr(C)] |
| 940 |
pub struct EMI_MEASUREMENT_DATA_V2 { |
| 941 |
pub ChannelData: [EMI_CHANNEL_MEASUREMENT_DATA; 1], |
| 942 |
} |
| 943 |
impl ::core::marker::Copy for EMI_MEASUREMENT_DATA_V2 {} |
| 944 |
impl ::core::clone::Clone for EMI_MEASUREMENT_DATA_V2 { |
| 945 |
fn clone(&self) -> Self { |
| 946 |
*self |
| 947 |
} |
| 948 |
} |
| 949 |
#[repr(C)] |
| 950 |
pub struct EMI_METADATA_SIZE { |
| 951 |
pub MetadataSize: u32, |
| 952 |
} |
| 953 |
impl ::core::marker::Copy for EMI_METADATA_SIZE {} |
| 954 |
impl ::core::clone::Clone for EMI_METADATA_SIZE { |
| 955 |
fn clone(&self) -> Self { |
| 956 |
*self |
| 957 |
} |
| 958 |
} |
| 959 |
#[repr(C)] |
| 960 |
pub struct EMI_METADATA_V1 { |
| 961 |
pub MeasurementUnit: EMI_MEASUREMENT_UNIT, |
| 962 |
pub HardwareOEM: [u16; 16], |
| 963 |
pub HardwareModel: [u16; 16], |
| 964 |
pub HardwareRevision: u16, |
| 965 |
pub MeteredHardwareNameSize: u16, |
| 966 |
pub MeteredHardwareName: [u16; 1], |
| 967 |
} |
| 968 |
impl ::core::marker::Copy for EMI_METADATA_V1 {} |
| 969 |
impl ::core::clone::Clone for EMI_METADATA_V1 { |
| 970 |
fn clone(&self) -> Self { |
| 971 |
*self |
| 972 |
} |
| 973 |
} |
| 974 |
#[repr(C)] |
| 975 |
pub struct EMI_METADATA_V2 { |
| 976 |
pub HardwareOEM: [u16; 16], |
| 977 |
pub HardwareModel: [u16; 16], |
| 978 |
pub HardwareRevision: u16, |
| 979 |
pub ChannelCount: u16, |
| 980 |
pub Channels: [EMI_CHANNEL_V2; 1], |
| 981 |
} |
| 982 |
impl ::core::marker::Copy for EMI_METADATA_V2 {} |
| 983 |
impl ::core::clone::Clone for EMI_METADATA_V2 { |
| 984 |
fn clone(&self) -> Self { |
| 985 |
*self |
| 986 |
} |
| 987 |
} |
| 988 |
#[repr(C)] |
| 989 |
pub struct EMI_VERSION { |
| 990 |
pub EmiVersion: u16, |
| 991 |
} |
| 992 |
impl ::core::marker::Copy for EMI_VERSION {} |
| 993 |
impl ::core::clone::Clone for EMI_VERSION { |
| 994 |
fn clone(&self) -> Self { |
| 995 |
*self |
| 996 |
} |
| 997 |
} |
| 998 |
#[repr(C)] |
| 999 |
pub struct GLOBAL_MACHINE_POWER_POLICY { |
| 1000 |
pub Revision: u32, |
| 1001 |
pub LidOpenWakeAc: SYSTEM_POWER_STATE, |
| 1002 |
pub LidOpenWakeDc: SYSTEM_POWER_STATE, |
| 1003 |
pub BroadcastCapacityResolution: u32, |
| 1004 |
} |
| 1005 |
impl ::core::marker::Copy for GLOBAL_MACHINE_POWER_POLICY {} |
| 1006 |
impl ::core::clone::Clone for GLOBAL_MACHINE_POWER_POLICY { |
| 1007 |
fn clone(&self) -> Self { |
| 1008 |
*self |
| 1009 |
} |
| 1010 |
} |
| 1011 |
#[repr(C)] |
| 1012 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 1013 |
#[cfg(feature = "Win32_Foundation")] |
| 1014 |
pub struct GLOBAL_POWER_POLICY { |
| 1015 |
pub user: GLOBAL_USER_POWER_POLICY, |
| 1016 |
pub mach: GLOBAL_MACHINE_POWER_POLICY, |
| 1017 |
} |
| 1018 |
#[cfg(feature = "Win32_Foundation")] |
| 1019 |
impl ::core::marker::Copy for GLOBAL_POWER_POLICY {} |
| 1020 |
#[cfg(feature = "Win32_Foundation")] |
| 1021 |
impl ::core::clone::Clone for GLOBAL_POWER_POLICY { |
| 1022 |
fn clone(&self) -> Self { |
| 1023 |
*self |
| 1024 |
} |
| 1025 |
} |
| 1026 |
#[repr(C)] |
| 1027 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 1028 |
#[cfg(feature = "Win32_Foundation")] |
| 1029 |
pub struct GLOBAL_USER_POWER_POLICY { |
| 1030 |
pub Revision: u32, |
| 1031 |
pub PowerButtonAc: POWER_ACTION_POLICY, |
| 1032 |
pub PowerButtonDc: POWER_ACTION_POLICY, |
| 1033 |
pub SleepButtonAc: POWER_ACTION_POLICY, |
| 1034 |
pub SleepButtonDc: POWER_ACTION_POLICY, |
| 1035 |
pub LidCloseAc: POWER_ACTION_POLICY, |
| 1036 |
pub LidCloseDc: POWER_ACTION_POLICY, |
| 1037 |
pub DischargePolicy: [SYSTEM_POWER_LEVEL; 4], |
| 1038 |
pub GlobalFlags: u32, |
| 1039 |
} |
| 1040 |
#[cfg(feature = "Win32_Foundation")] |
| 1041 |
impl ::core::marker::Copy for GLOBAL_USER_POWER_POLICY {} |
| 1042 |
#[cfg(feature = "Win32_Foundation")] |
| 1043 |
impl ::core::clone::Clone for GLOBAL_USER_POWER_POLICY { |
| 1044 |
fn clone(&self) -> Self { |
| 1045 |
*self |
| 1046 |
} |
| 1047 |
} |
| 1048 |
pub type HPOWERNOTIFY = isize; |
| 1049 |
#[repr(C)] |
| 1050 |
pub struct MACHINE_POWER_POLICY { |
| 1051 |
pub Revision: u32, |
| 1052 |
pub MinSleepAc: SYSTEM_POWER_STATE, |
| 1053 |
pub MinSleepDc: SYSTEM_POWER_STATE, |
| 1054 |
pub ReducedLatencySleepAc: SYSTEM_POWER_STATE, |
| 1055 |
pub ReducedLatencySleepDc: SYSTEM_POWER_STATE, |
| 1056 |
pub DozeTimeoutAc: u32, |
| 1057 |
pub DozeTimeoutDc: u32, |
| 1058 |
pub DozeS4TimeoutAc: u32, |
| 1059 |
pub DozeS4TimeoutDc: u32, |
| 1060 |
pub MinThrottleAc: u8, |
| 1061 |
pub MinThrottleDc: u8, |
| 1062 |
pub pad1: [u8; 2], |
| 1063 |
pub OverThrottledAc: POWER_ACTION_POLICY, |
| 1064 |
pub OverThrottledDc: POWER_ACTION_POLICY, |
| 1065 |
} |
| 1066 |
impl ::core::marker::Copy for MACHINE_POWER_POLICY {} |
| 1067 |
impl ::core::clone::Clone for MACHINE_POWER_POLICY { |
| 1068 |
fn clone(&self) -> Self { |
| 1069 |
*self |
| 1070 |
} |
| 1071 |
} |
| 1072 |
#[repr(C)] |
| 1073 |
pub struct MACHINE_PROCESSOR_POWER_POLICY { |
| 1074 |
pub Revision: u32, |
| 1075 |
pub ProcessorPolicyAc: PROCESSOR_POWER_POLICY, |
| 1076 |
pub ProcessorPolicyDc: PROCESSOR_POWER_POLICY, |
| 1077 |
} |
| 1078 |
impl ::core::marker::Copy for MACHINE_PROCESSOR_POWER_POLICY {} |
| 1079 |
impl ::core::clone::Clone for MACHINE_PROCESSOR_POWER_POLICY { |
| 1080 |
fn clone(&self) -> Self { |
| 1081 |
*self |
| 1082 |
} |
| 1083 |
} |
| 1084 |
#[repr(C)] |
| 1085 |
pub struct POWERBROADCAST_SETTING { |
| 1086 |
pub PowerSetting: ::windows_sys::core::GUID, |
| 1087 |
pub DataLength: u32, |
| 1088 |
pub Data: [u8; 1], |
| 1089 |
} |
| 1090 |
impl ::core::marker::Copy for POWERBROADCAST_SETTING {} |
| 1091 |
impl ::core::clone::Clone for POWERBROADCAST_SETTING { |
| 1092 |
fn clone(&self) -> Self { |
| 1093 |
*self |
| 1094 |
} |
| 1095 |
} |
| 1096 |
#[repr(C)] |
| 1097 |
pub struct POWER_ACTION_POLICY { |
| 1098 |
pub Action: POWER_ACTION, |
| 1099 |
pub Flags: u32, |
| 1100 |
pub EventCode: POWER_ACTION_POLICY_EVENT_CODE, |
| 1101 |
} |
| 1102 |
impl ::core::marker::Copy for POWER_ACTION_POLICY {} |
| 1103 |
impl ::core::clone::Clone for POWER_ACTION_POLICY { |
| 1104 |
fn clone(&self) -> Self { |
| 1105 |
*self |
| 1106 |
} |
| 1107 |
} |
| 1108 |
#[repr(C)] |
| 1109 |
pub struct POWER_IDLE_RESILIENCY { |
| 1110 |
pub CoalescingTimeout: u32, |
| 1111 |
pub IdleResiliencyPeriod: u32, |
| 1112 |
} |
| 1113 |
impl ::core::marker::Copy for POWER_IDLE_RESILIENCY {} |
| 1114 |
impl ::core::clone::Clone for POWER_IDLE_RESILIENCY { |
| 1115 |
fn clone(&self) -> Self { |
| 1116 |
*self |
| 1117 |
} |
| 1118 |
} |
| 1119 |
#[repr(C)] |
| 1120 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 1121 |
#[cfg(feature = "Win32_Foundation")] |
| 1122 |
pub struct POWER_MONITOR_INVOCATION { |
| 1123 |
pub Console: super::super::Foundation::BOOLEAN, |
| 1124 |
pub RequestReason: POWER_MONITOR_REQUEST_REASON, |
| 1125 |
} |
| 1126 |
#[cfg(feature = "Win32_Foundation")] |
| 1127 |
impl ::core::marker::Copy for POWER_MONITOR_INVOCATION {} |
| 1128 |
#[cfg(feature = "Win32_Foundation")] |
| 1129 |
impl ::core::clone::Clone for POWER_MONITOR_INVOCATION { |
| 1130 |
fn clone(&self) -> Self { |
| 1131 |
*self |
| 1132 |
} |
| 1133 |
} |
| 1134 |
#[repr(C)] |
| 1135 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 1136 |
#[cfg(feature = "Win32_Foundation")] |
| 1137 |
pub struct POWER_PLATFORM_INFORMATION { |
| 1138 |
pub AoAc: super::super::Foundation::BOOLEAN, |
| 1139 |
} |
| 1140 |
#[cfg(feature = "Win32_Foundation")] |
| 1141 |
impl ::core::marker::Copy for POWER_PLATFORM_INFORMATION {} |
| 1142 |
#[cfg(feature = "Win32_Foundation")] |
| 1143 |
impl ::core::clone::Clone for POWER_PLATFORM_INFORMATION { |
| 1144 |
fn clone(&self) -> Self { |
| 1145 |
*self |
| 1146 |
} |
| 1147 |
} |
| 1148 |
#[repr(C)] |
| 1149 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 1150 |
#[cfg(feature = "Win32_Foundation")] |
| 1151 |
pub struct POWER_POLICY { |
| 1152 |
pub user: USER_POWER_POLICY, |
| 1153 |
pub mach: MACHINE_POWER_POLICY, |
| 1154 |
} |
| 1155 |
#[cfg(feature = "Win32_Foundation")] |
| 1156 |
impl ::core::marker::Copy for POWER_POLICY {} |
| 1157 |
#[cfg(feature = "Win32_Foundation")] |
| 1158 |
impl ::core::clone::Clone for POWER_POLICY { |
| 1159 |
fn clone(&self) -> Self { |
| 1160 |
*self |
| 1161 |
} |
| 1162 |
} |
| 1163 |
#[repr(C)] |
| 1164 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 1165 |
#[cfg(feature = "Win32_Foundation")] |
| 1166 |
pub struct POWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES { |
| 1167 |
pub IsAllowed: super::super::Foundation::BOOLEAN, |
| 1168 |
} |
| 1169 |
#[cfg(feature = "Win32_Foundation")] |
| 1170 |
impl ::core::marker::Copy for POWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES {} |
| 1171 |
#[cfg(feature = "Win32_Foundation")] |
| 1172 |
impl ::core::clone::Clone for POWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES { |
| 1173 |
fn clone(&self) -> Self { |
| 1174 |
*self |
| 1175 |
} |
| 1176 |
} |
| 1177 |
#[repr(C)] |
| 1178 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 1179 |
#[cfg(feature = "Win32_Foundation")] |
| 1180 |
pub struct POWER_SESSION_CONNECT { |
| 1181 |
pub Connected: super::super::Foundation::BOOLEAN, |
| 1182 |
pub Console: super::super::Foundation::BOOLEAN, |
| 1183 |
} |
| 1184 |
#[cfg(feature = "Win32_Foundation")] |
| 1185 |
impl ::core::marker::Copy for POWER_SESSION_CONNECT {} |
| 1186 |
#[cfg(feature = "Win32_Foundation")] |
| 1187 |
impl ::core::clone::Clone for POWER_SESSION_CONNECT { |
| 1188 |
fn clone(&self) -> Self { |
| 1189 |
*self |
| 1190 |
} |
| 1191 |
} |
| 1192 |
#[repr(C)] |
| 1193 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 1194 |
#[cfg(feature = "Win32_Foundation")] |
| 1195 |
pub struct POWER_SESSION_RIT_STATE { |
| 1196 |
pub Active: super::super::Foundation::BOOLEAN, |
| 1197 |
pub LastInputTime: u64, |
| 1198 |
} |
| 1199 |
#[cfg(feature = "Win32_Foundation")] |
| 1200 |
impl ::core::marker::Copy for POWER_SESSION_RIT_STATE {} |
| 1201 |
#[cfg(feature = "Win32_Foundation")] |
| 1202 |
impl ::core::clone::Clone for POWER_SESSION_RIT_STATE { |
| 1203 |
fn clone(&self) -> Self { |
| 1204 |
*self |
| 1205 |
} |
| 1206 |
} |
| 1207 |
#[repr(C)] |
| 1208 |
pub struct POWER_SESSION_TIMEOUTS { |
| 1209 |
pub InputTimeout: u32, |
| 1210 |
pub DisplayTimeout: u32, |
| 1211 |
} |
| 1212 |
impl ::core::marker::Copy for POWER_SESSION_TIMEOUTS {} |
| 1213 |
impl ::core::clone::Clone for POWER_SESSION_TIMEOUTS { |
| 1214 |
fn clone(&self) -> Self { |
| 1215 |
*self |
| 1216 |
} |
| 1217 |
} |
| 1218 |
#[repr(C)] |
| 1219 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 1220 |
#[cfg(feature = "Win32_Foundation")] |
| 1221 |
pub struct POWER_SESSION_WINLOGON { |
| 1222 |
pub SessionId: u32, |
| 1223 |
pub Console: super::super::Foundation::BOOLEAN, |
| 1224 |
pub Locked: super::super::Foundation::BOOLEAN, |
| 1225 |
} |
| 1226 |
#[cfg(feature = "Win32_Foundation")] |
| 1227 |
impl ::core::marker::Copy for POWER_SESSION_WINLOGON {} |
| 1228 |
#[cfg(feature = "Win32_Foundation")] |
| 1229 |
impl ::core::clone::Clone for POWER_SESSION_WINLOGON { |
| 1230 |
fn clone(&self) -> Self { |
| 1231 |
*self |
| 1232 |
} |
| 1233 |
} |
| 1234 |
#[repr(C)] |
| 1235 |
pub struct POWER_USER_PRESENCE { |
| 1236 |
pub UserPresence: POWER_USER_PRESENCE_TYPE, |
| 1237 |
} |
| 1238 |
impl ::core::marker::Copy for POWER_USER_PRESENCE {} |
| 1239 |
impl ::core::clone::Clone for POWER_USER_PRESENCE { |
| 1240 |
fn clone(&self) -> Self { |
| 1241 |
*self |
| 1242 |
} |
| 1243 |
} |
| 1244 |
#[repr(C)] |
| 1245 |
pub struct PPM_IDLESTATE_EVENT { |
| 1246 |
pub NewState: u32, |
| 1247 |
pub OldState: u32, |
| 1248 |
pub Processors: u64, |
| 1249 |
} |
| 1250 |
impl ::core::marker::Copy for PPM_IDLESTATE_EVENT {} |
| 1251 |
impl ::core::clone::Clone for PPM_IDLESTATE_EVENT { |
| 1252 |
fn clone(&self) -> Self { |
| 1253 |
*self |
| 1254 |
} |
| 1255 |
} |
| 1256 |
#[repr(C)] |
| 1257 |
pub struct PPM_IDLE_ACCOUNTING { |
| 1258 |
pub StateCount: u32, |
| 1259 |
pub TotalTransitions: u32, |
| 1260 |
pub ResetCount: u32, |
| 1261 |
pub StartTime: u64, |
| 1262 |
pub State: [PPM_IDLE_STATE_ACCOUNTING; 1], |
| 1263 |
} |
| 1264 |
impl ::core::marker::Copy for PPM_IDLE_ACCOUNTING {} |
| 1265 |
impl ::core::clone::Clone for PPM_IDLE_ACCOUNTING { |
| 1266 |
fn clone(&self) -> Self { |
| 1267 |
*self |
| 1268 |
} |
| 1269 |
} |
| 1270 |
#[repr(C)] |
| 1271 |
pub struct PPM_IDLE_ACCOUNTING_EX { |
| 1272 |
pub StateCount: u32, |
| 1273 |
pub TotalTransitions: u32, |
| 1274 |
pub ResetCount: u32, |
| 1275 |
pub AbortCount: u32, |
| 1276 |
pub StartTime: u64, |
| 1277 |
pub State: [PPM_IDLE_STATE_ACCOUNTING_EX; 1], |
| 1278 |
} |
| 1279 |
impl ::core::marker::Copy for PPM_IDLE_ACCOUNTING_EX {} |
| 1280 |
impl ::core::clone::Clone for PPM_IDLE_ACCOUNTING_EX { |
| 1281 |
fn clone(&self) -> Self { |
| 1282 |
*self |
| 1283 |
} |
| 1284 |
} |
| 1285 |
#[repr(C)] |
| 1286 |
pub struct PPM_IDLE_STATE_ACCOUNTING { |
| 1287 |
pub IdleTransitions: u32, |
| 1288 |
pub FailedTransitions: u32, |
| 1289 |
pub InvalidBucketIndex: u32, |
| 1290 |
pub TotalTime: u64, |
| 1291 |
pub IdleTimeBuckets: [u32; 6], |
| 1292 |
} |
| 1293 |
impl ::core::marker::Copy for PPM_IDLE_STATE_ACCOUNTING {} |
| 1294 |
impl ::core::clone::Clone for PPM_IDLE_STATE_ACCOUNTING { |
| 1295 |
fn clone(&self) -> Self { |
| 1296 |
*self |
| 1297 |
} |
| 1298 |
} |
| 1299 |
#[repr(C)] |
| 1300 |
pub struct PPM_IDLE_STATE_ACCOUNTING_EX { |
| 1301 |
pub TotalTime: u64, |
| 1302 |
pub IdleTransitions: u32, |
| 1303 |
pub FailedTransitions: u32, |
| 1304 |
pub InvalidBucketIndex: u32, |
| 1305 |
pub MinTimeUs: u32, |
| 1306 |
pub MaxTimeUs: u32, |
| 1307 |
pub CancelledTransitions: u32, |
| 1308 |
pub IdleTimeBuckets: [PPM_IDLE_STATE_BUCKET_EX; 16], |
| 1309 |
} |
| 1310 |
impl ::core::marker::Copy for PPM_IDLE_STATE_ACCOUNTING_EX {} |
| 1311 |
impl ::core::clone::Clone for PPM_IDLE_STATE_ACCOUNTING_EX { |
| 1312 |
fn clone(&self) -> Self { |
| 1313 |
*self |
| 1314 |
} |
| 1315 |
} |
| 1316 |
#[repr(C)] |
| 1317 |
pub struct PPM_IDLE_STATE_BUCKET_EX { |
| 1318 |
pub TotalTimeUs: u64, |
| 1319 |
pub MinTimeUs: u32, |
| 1320 |
pub MaxTimeUs: u32, |
| 1321 |
pub Count: u32, |
| 1322 |
} |
| 1323 |
impl ::core::marker::Copy for PPM_IDLE_STATE_BUCKET_EX {} |
| 1324 |
impl ::core::clone::Clone for PPM_IDLE_STATE_BUCKET_EX { |
| 1325 |
fn clone(&self) -> Self { |
| 1326 |
*self |
| 1327 |
} |
| 1328 |
} |
| 1329 |
#[repr(C)] |
| 1330 |
pub struct PPM_PERFSTATE_DOMAIN_EVENT { |
| 1331 |
pub State: u32, |
| 1332 |
pub Latency: u32, |
| 1333 |
pub Speed: u32, |
| 1334 |
pub Processors: u64, |
| 1335 |
} |
| 1336 |
impl ::core::marker::Copy for PPM_PERFSTATE_DOMAIN_EVENT {} |
| 1337 |
impl ::core::clone::Clone for PPM_PERFSTATE_DOMAIN_EVENT { |
| 1338 |
fn clone(&self) -> Self { |
| 1339 |
*self |
| 1340 |
} |
| 1341 |
} |
| 1342 |
#[repr(C)] |
| 1343 |
pub struct PPM_PERFSTATE_EVENT { |
| 1344 |
pub State: u32, |
| 1345 |
pub Status: u32, |
| 1346 |
pub Latency: u32, |
| 1347 |
pub Speed: u32, |
| 1348 |
pub Processor: u32, |
| 1349 |
} |
| 1350 |
impl ::core::marker::Copy for PPM_PERFSTATE_EVENT {} |
| 1351 |
impl ::core::clone::Clone for PPM_PERFSTATE_EVENT { |
| 1352 |
fn clone(&self) -> Self { |
| 1353 |
*self |
| 1354 |
} |
| 1355 |
} |
| 1356 |
#[repr(C)] |
| 1357 |
pub struct PPM_THERMALCHANGE_EVENT { |
| 1358 |
pub ThermalConstraint: u32, |
| 1359 |
pub Processors: u64, |
| 1360 |
} |
| 1361 |
impl ::core::marker::Copy for PPM_THERMALCHANGE_EVENT {} |
| 1362 |
impl ::core::clone::Clone for PPM_THERMALCHANGE_EVENT { |
| 1363 |
fn clone(&self) -> Self { |
| 1364 |
*self |
| 1365 |
} |
| 1366 |
} |
| 1367 |
#[repr(C)] |
| 1368 |
pub struct PPM_THERMAL_POLICY_EVENT { |
| 1369 |
pub Mode: u8, |
| 1370 |
pub Processors: u64, |
| 1371 |
} |
| 1372 |
impl ::core::marker::Copy for PPM_THERMAL_POLICY_EVENT {} |
| 1373 |
impl ::core::clone::Clone for PPM_THERMAL_POLICY_EVENT { |
| 1374 |
fn clone(&self) -> Self { |
| 1375 |
*self |
| 1376 |
} |
| 1377 |
} |
| 1378 |
#[repr(C)] |
| 1379 |
pub struct PPM_WMI_IDLE_STATE { |
| 1380 |
pub Latency: u32, |
| 1381 |
pub Power: u32, |
| 1382 |
pub TimeCheck: u32, |
| 1383 |
pub PromotePercent: u8, |
| 1384 |
pub DemotePercent: u8, |
| 1385 |
pub StateType: u8, |
| 1386 |
pub Reserved: u8, |
| 1387 |
pub StateFlags: u32, |
| 1388 |
pub Context: u32, |
| 1389 |
pub IdleHandler: u32, |
| 1390 |
pub Reserved1: u32, |
| 1391 |
} |
| 1392 |
impl ::core::marker::Copy for PPM_WMI_IDLE_STATE {} |
| 1393 |
impl ::core::clone::Clone for PPM_WMI_IDLE_STATE { |
| 1394 |
fn clone(&self) -> Self { |
| 1395 |
*self |
| 1396 |
} |
| 1397 |
} |
| 1398 |
#[repr(C)] |
| 1399 |
pub struct PPM_WMI_IDLE_STATES { |
| 1400 |
pub Type: u32, |
| 1401 |
pub Count: u32, |
| 1402 |
pub TargetState: u32, |
| 1403 |
pub OldState: u32, |
| 1404 |
pub TargetProcessors: u64, |
| 1405 |
pub State: [PPM_WMI_IDLE_STATE; 1], |
| 1406 |
} |
| 1407 |
impl ::core::marker::Copy for PPM_WMI_IDLE_STATES {} |
| 1408 |
impl ::core::clone::Clone for PPM_WMI_IDLE_STATES { |
| 1409 |
fn clone(&self) -> Self { |
| 1410 |
*self |
| 1411 |
} |
| 1412 |
} |
| 1413 |
#[repr(C)] |
| 1414 |
pub struct PPM_WMI_IDLE_STATES_EX { |
| 1415 |
pub Type: u32, |
| 1416 |
pub Count: u32, |
| 1417 |
pub TargetState: u32, |
| 1418 |
pub OldState: u32, |
| 1419 |
pub TargetProcessors: *mut ::core::ffi::c_void, |
| 1420 |
pub State: [PPM_WMI_IDLE_STATE; 1], |
| 1421 |
} |
| 1422 |
impl ::core::marker::Copy for PPM_WMI_IDLE_STATES_EX {} |
| 1423 |
impl ::core::clone::Clone for PPM_WMI_IDLE_STATES_EX { |
| 1424 |
fn clone(&self) -> Self { |
| 1425 |
*self |
| 1426 |
} |
| 1427 |
} |
| 1428 |
#[repr(C)] |
| 1429 |
pub struct PPM_WMI_LEGACY_PERFSTATE { |
| 1430 |
pub Frequency: u32, |
| 1431 |
pub Flags: u32, |
| 1432 |
pub PercentFrequency: u32, |
| 1433 |
} |
| 1434 |
impl ::core::marker::Copy for PPM_WMI_LEGACY_PERFSTATE {} |
| 1435 |
impl ::core::clone::Clone for PPM_WMI_LEGACY_PERFSTATE { |
| 1436 |
fn clone(&self) -> Self { |
| 1437 |
*self |
| 1438 |
} |
| 1439 |
} |
| 1440 |
#[repr(C)] |
| 1441 |
pub struct PPM_WMI_PERF_STATE { |
| 1442 |
pub Frequency: u32, |
| 1443 |
pub Power: u32, |
| 1444 |
pub PercentFrequency: u8, |
| 1445 |
pub IncreaseLevel: u8, |
| 1446 |
pub DecreaseLevel: u8, |
| 1447 |
pub Type: u8, |
| 1448 |
pub IncreaseTime: u32, |
| 1449 |
pub DecreaseTime: u32, |
| 1450 |
pub Control: u64, |
| 1451 |
pub Status: u64, |
| 1452 |
pub HitCount: u32, |
| 1453 |
pub Reserved1: u32, |
| 1454 |
pub Reserved2: u64, |
| 1455 |
pub Reserved3: u64, |
| 1456 |
} |
| 1457 |
impl ::core::marker::Copy for PPM_WMI_PERF_STATE {} |
| 1458 |
impl ::core::clone::Clone for PPM_WMI_PERF_STATE { |
| 1459 |
fn clone(&self) -> Self { |
| 1460 |
*self |
| 1461 |
} |
| 1462 |
} |
| 1463 |
#[repr(C)] |
| 1464 |
pub struct PPM_WMI_PERF_STATES { |
| 1465 |
pub Count: u32, |
| 1466 |
pub MaxFrequency: u32, |
| 1467 |
pub CurrentState: u32, |
| 1468 |
pub MaxPerfState: u32, |
| 1469 |
pub MinPerfState: u32, |
| 1470 |
pub LowestPerfState: u32, |
| 1471 |
pub ThermalConstraint: u32, |
| 1472 |
pub BusyAdjThreshold: u8, |
| 1473 |
pub PolicyType: u8, |
| 1474 |
pub Type: u8, |
| 1475 |
pub Reserved: u8, |
| 1476 |
pub TimerInterval: u32, |
| 1477 |
pub TargetProcessors: u64, |
| 1478 |
pub PStateHandler: u32, |
| 1479 |
pub PStateContext: u32, |
| 1480 |
pub TStateHandler: u32, |
| 1481 |
pub TStateContext: u32, |
| 1482 |
pub FeedbackHandler: u32, |
| 1483 |
pub Reserved1: u32, |
| 1484 |
pub Reserved2: u64, |
| 1485 |
pub State: [PPM_WMI_PERF_STATE; 1], |
| 1486 |
} |
| 1487 |
impl ::core::marker::Copy for PPM_WMI_PERF_STATES {} |
| 1488 |
impl ::core::clone::Clone for PPM_WMI_PERF_STATES { |
| 1489 |
fn clone(&self) -> Self { |
| 1490 |
*self |
| 1491 |
} |
| 1492 |
} |
| 1493 |
#[repr(C)] |
| 1494 |
pub struct PPM_WMI_PERF_STATES_EX { |
| 1495 |
pub Count: u32, |
| 1496 |
pub MaxFrequency: u32, |
| 1497 |
pub CurrentState: u32, |
| 1498 |
pub MaxPerfState: u32, |
| 1499 |
pub MinPerfState: u32, |
| 1500 |
pub LowestPerfState: u32, |
| 1501 |
pub ThermalConstraint: u32, |
| 1502 |
pub BusyAdjThreshold: u8, |
| 1503 |
pub PolicyType: u8, |
| 1504 |
pub Type: u8, |
| 1505 |
pub Reserved: u8, |
| 1506 |
pub TimerInterval: u32, |
| 1507 |
pub TargetProcessors: *mut ::core::ffi::c_void, |
| 1508 |
pub PStateHandler: u32, |
| 1509 |
pub PStateContext: u32, |
| 1510 |
pub TStateHandler: u32, |
| 1511 |
pub TStateContext: u32, |
| 1512 |
pub FeedbackHandler: u32, |
| 1513 |
pub Reserved1: u32, |
| 1514 |
pub Reserved2: u64, |
| 1515 |
pub State: [PPM_WMI_PERF_STATE; 1], |
| 1516 |
} |
| 1517 |
impl ::core::marker::Copy for PPM_WMI_PERF_STATES_EX {} |
| 1518 |
impl ::core::clone::Clone for PPM_WMI_PERF_STATES_EX { |
| 1519 |
fn clone(&self) -> Self { |
| 1520 |
*self |
| 1521 |
} |
| 1522 |
} |
| 1523 |
#[repr(C)] |
| 1524 |
pub struct PROCESSOR_OBJECT_INFO { |
| 1525 |
pub PhysicalID: u32, |
| 1526 |
pub PBlkAddress: u32, |
| 1527 |
pub PBlkLength: u8, |
| 1528 |
} |
| 1529 |
impl ::core::marker::Copy for PROCESSOR_OBJECT_INFO {} |
| 1530 |
impl ::core::clone::Clone for PROCESSOR_OBJECT_INFO { |
| 1531 |
fn clone(&self) -> Self { |
| 1532 |
*self |
| 1533 |
} |
| 1534 |
} |
| 1535 |
#[repr(C)] |
| 1536 |
pub struct PROCESSOR_OBJECT_INFO_EX { |
| 1537 |
pub PhysicalID: u32, |
| 1538 |
pub PBlkAddress: u32, |
| 1539 |
pub PBlkLength: u8, |
| 1540 |
pub InitialApicId: u32, |
| 1541 |
} |
| 1542 |
impl ::core::marker::Copy for PROCESSOR_OBJECT_INFO_EX {} |
| 1543 |
impl ::core::clone::Clone for PROCESSOR_OBJECT_INFO_EX { |
| 1544 |
fn clone(&self) -> Self { |
| 1545 |
*self |
| 1546 |
} |
| 1547 |
} |
| 1548 |
#[repr(C)] |
| 1549 |
pub struct PROCESSOR_POWER_INFORMATION { |
| 1550 |
pub Number: u32, |
| 1551 |
pub MaxMhz: u32, |
| 1552 |
pub CurrentMhz: u32, |
| 1553 |
pub MhzLimit: u32, |
| 1554 |
pub MaxIdleState: u32, |
| 1555 |
pub CurrentIdleState: u32, |
| 1556 |
} |
| 1557 |
impl ::core::marker::Copy for PROCESSOR_POWER_INFORMATION {} |
| 1558 |
impl ::core::clone::Clone for PROCESSOR_POWER_INFORMATION { |
| 1559 |
fn clone(&self) -> Self { |
| 1560 |
*self |
| 1561 |
} |
| 1562 |
} |
| 1563 |
#[repr(C)] |
| 1564 |
pub struct PROCESSOR_POWER_POLICY { |
| 1565 |
pub Revision: u32, |
| 1566 |
pub DynamicThrottle: u8, |
| 1567 |
pub Spare: [u8; 3], |
| 1568 |
pub _bitfield: u32, |
| 1569 |
pub PolicyCount: u32, |
| 1570 |
pub Policy: [PROCESSOR_POWER_POLICY_INFO; 3], |
| 1571 |
} |
| 1572 |
impl ::core::marker::Copy for PROCESSOR_POWER_POLICY {} |
| 1573 |
impl ::core::clone::Clone for PROCESSOR_POWER_POLICY { |
| 1574 |
fn clone(&self) -> Self { |
| 1575 |
*self |
| 1576 |
} |
| 1577 |
} |
| 1578 |
#[repr(C)] |
| 1579 |
pub struct PROCESSOR_POWER_POLICY_INFO { |
| 1580 |
pub TimeCheck: u32, |
| 1581 |
pub DemoteLimit: u32, |
| 1582 |
pub PromoteLimit: u32, |
| 1583 |
pub DemotePercent: u8, |
| 1584 |
pub PromotePercent: u8, |
| 1585 |
pub Spare: [u8; 2], |
| 1586 |
pub _bitfield: u32, |
| 1587 |
} |
| 1588 |
impl ::core::marker::Copy for PROCESSOR_POWER_POLICY_INFO {} |
| 1589 |
impl ::core::clone::Clone for PROCESSOR_POWER_POLICY_INFO { |
| 1590 |
fn clone(&self) -> Self { |
| 1591 |
*self |
| 1592 |
} |
| 1593 |
} |
| 1594 |
#[repr(C)] |
| 1595 |
pub struct RESUME_PERFORMANCE { |
| 1596 |
pub PostTimeMs: u32, |
| 1597 |
pub TotalResumeTimeMs: u64, |
| 1598 |
pub ResumeCompleteTimestamp: u64, |
| 1599 |
} |
| 1600 |
impl ::core::marker::Copy for RESUME_PERFORMANCE {} |
| 1601 |
impl ::core::clone::Clone for RESUME_PERFORMANCE { |
| 1602 |
fn clone(&self) -> Self { |
| 1603 |
*self |
| 1604 |
} |
| 1605 |
} |
| 1606 |
#[repr(C)] |
| 1607 |
pub struct SET_POWER_SETTING_VALUE { |
| 1608 |
pub Version: u32, |
| 1609 |
pub Guid: ::windows_sys::core::GUID, |
| 1610 |
pub PowerCondition: SYSTEM_POWER_CONDITION, |
| 1611 |
pub DataLength: u32, |
| 1612 |
pub Data: [u8; 1], |
| 1613 |
} |
| 1614 |
impl ::core::marker::Copy for SET_POWER_SETTING_VALUE {} |
| 1615 |
impl ::core::clone::Clone for SET_POWER_SETTING_VALUE { |
| 1616 |
fn clone(&self) -> Self { |
| 1617 |
*self |
| 1618 |
} |
| 1619 |
} |
| 1620 |
#[repr(C)] |
| 1621 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 1622 |
#[cfg(feature = "Win32_Foundation")] |
| 1623 |
pub struct SYSTEM_BATTERY_STATE { |
| 1624 |
pub AcOnLine: super::super::Foundation::BOOLEAN, |
| 1625 |
pub BatteryPresent: super::super::Foundation::BOOLEAN, |
| 1626 |
pub Charging: super::super::Foundation::BOOLEAN, |
| 1627 |
pub Discharging: super::super::Foundation::BOOLEAN, |
| 1628 |
pub Spare1: [super::super::Foundation::BOOLEAN; 3], |
| 1629 |
pub Tag: u8, |
| 1630 |
pub MaxCapacity: u32, |
| 1631 |
pub RemainingCapacity: u32, |
| 1632 |
pub Rate: u32, |
| 1633 |
pub EstimatedTime: u32, |
| 1634 |
pub DefaultAlert1: u32, |
| 1635 |
pub DefaultAlert2: u32, |
| 1636 |
} |
| 1637 |
#[cfg(feature = "Win32_Foundation")] |
| 1638 |
impl ::core::marker::Copy for SYSTEM_BATTERY_STATE {} |
| 1639 |
#[cfg(feature = "Win32_Foundation")] |
| 1640 |
impl ::core::clone::Clone for SYSTEM_BATTERY_STATE { |
| 1641 |
fn clone(&self) -> Self { |
| 1642 |
*self |
| 1643 |
} |
| 1644 |
} |
| 1645 |
#[repr(C)] |
| 1646 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 1647 |
#[cfg(feature = "Win32_Foundation")] |
| 1648 |
pub struct SYSTEM_POWER_CAPABILITIES { |
| 1649 |
pub PowerButtonPresent: super::super::Foundation::BOOLEAN, |
| 1650 |
pub SleepButtonPresent: super::super::Foundation::BOOLEAN, |
| 1651 |
pub LidPresent: super::super::Foundation::BOOLEAN, |
| 1652 |
pub SystemS1: super::super::Foundation::BOOLEAN, |
| 1653 |
pub SystemS2: super::super::Foundation::BOOLEAN, |
| 1654 |
pub SystemS3: super::super::Foundation::BOOLEAN, |
| 1655 |
pub SystemS4: super::super::Foundation::BOOLEAN, |
| 1656 |
pub SystemS5: super::super::Foundation::BOOLEAN, |
| 1657 |
pub HiberFilePresent: super::super::Foundation::BOOLEAN, |
| 1658 |
pub FullWake: super::super::Foundation::BOOLEAN, |
| 1659 |
pub VideoDimPresent: super::super::Foundation::BOOLEAN, |
| 1660 |
pub ApmPresent: super::super::Foundation::BOOLEAN, |
| 1661 |
pub UpsPresent: super::super::Foundation::BOOLEAN, |
| 1662 |
pub ThermalControl: super::super::Foundation::BOOLEAN, |
| 1663 |
pub ProcessorThrottle: super::super::Foundation::BOOLEAN, |
| 1664 |
pub ProcessorMinThrottle: u8, |
| 1665 |
pub ProcessorMaxThrottle: u8, |
| 1666 |
pub FastSystemS4: super::super::Foundation::BOOLEAN, |
| 1667 |
pub Hiberboot: super::super::Foundation::BOOLEAN, |
| 1668 |
pub WakeAlarmPresent: super::super::Foundation::BOOLEAN, |
| 1669 |
pub AoAc: super::super::Foundation::BOOLEAN, |
| 1670 |
pub DiskSpinDown: super::super::Foundation::BOOLEAN, |
| 1671 |
pub HiberFileType: u8, |
| 1672 |
pub AoAcConnectivitySupported: super::super::Foundation::BOOLEAN, |
| 1673 |
pub spare3: [u8; 6], |
| 1674 |
pub SystemBatteriesPresent: super::super::Foundation::BOOLEAN, |
| 1675 |
pub BatteriesAreShortTerm: super::super::Foundation::BOOLEAN, |
| 1676 |
pub BatteryScale: [BATTERY_REPORTING_SCALE; 3], |
| 1677 |
pub AcOnLineWake: SYSTEM_POWER_STATE, |
| 1678 |
pub SoftLidWake: SYSTEM_POWER_STATE, |
| 1679 |
pub RtcWake: SYSTEM_POWER_STATE, |
| 1680 |
pub MinDeviceWakeState: SYSTEM_POWER_STATE, |
| 1681 |
pub DefaultLowLatencyWake: SYSTEM_POWER_STATE, |
| 1682 |
} |
| 1683 |
#[cfg(feature = "Win32_Foundation")] |
| 1684 |
impl ::core::marker::Copy for SYSTEM_POWER_CAPABILITIES {} |
| 1685 |
#[cfg(feature = "Win32_Foundation")] |
| 1686 |
impl ::core::clone::Clone for SYSTEM_POWER_CAPABILITIES { |
| 1687 |
fn clone(&self) -> Self { |
| 1688 |
*self |
| 1689 |
} |
| 1690 |
} |
| 1691 |
#[repr(C)] |
| 1692 |
pub struct SYSTEM_POWER_INFORMATION { |
| 1693 |
pub MaxIdlenessAllowed: u32, |
| 1694 |
pub Idleness: u32, |
| 1695 |
pub TimeRemaining: u32, |
| 1696 |
pub CoolingMode: POWER_COOLING_MODE, |
| 1697 |
} |
| 1698 |
impl ::core::marker::Copy for SYSTEM_POWER_INFORMATION {} |
| 1699 |
impl ::core::clone::Clone for SYSTEM_POWER_INFORMATION { |
| 1700 |
fn clone(&self) -> Self { |
| 1701 |
*self |
| 1702 |
} |
| 1703 |
} |
| 1704 |
#[repr(C)] |
| 1705 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 1706 |
#[cfg(feature = "Win32_Foundation")] |
| 1707 |
pub struct SYSTEM_POWER_LEVEL { |
| 1708 |
pub Enable: super::super::Foundation::BOOLEAN, |
| 1709 |
pub Spare: [u8; 3], |
| 1710 |
pub BatteryLevel: u32, |
| 1711 |
pub PowerPolicy: POWER_ACTION_POLICY, |
| 1712 |
pub MinSystemState: SYSTEM_POWER_STATE, |
| 1713 |
} |
| 1714 |
#[cfg(feature = "Win32_Foundation")] |
| 1715 |
impl ::core::marker::Copy for SYSTEM_POWER_LEVEL {} |
| 1716 |
#[cfg(feature = "Win32_Foundation")] |
| 1717 |
impl ::core::clone::Clone for SYSTEM_POWER_LEVEL { |
| 1718 |
fn clone(&self) -> Self { |
| 1719 |
*self |
| 1720 |
} |
| 1721 |
} |
| 1722 |
#[repr(C)] |
| 1723 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 1724 |
#[cfg(feature = "Win32_Foundation")] |
| 1725 |
pub struct SYSTEM_POWER_POLICY { |
| 1726 |
pub Revision: u32, |
| 1727 |
pub PowerButton: POWER_ACTION_POLICY, |
| 1728 |
pub SleepButton: POWER_ACTION_POLICY, |
| 1729 |
pub LidClose: POWER_ACTION_POLICY, |
| 1730 |
pub LidOpenWake: SYSTEM_POWER_STATE, |
| 1731 |
pub Reserved: u32, |
| 1732 |
pub Idle: POWER_ACTION_POLICY, |
| 1733 |
pub IdleTimeout: u32, |
| 1734 |
pub IdleSensitivity: u8, |
| 1735 |
pub DynamicThrottle: u8, |
| 1736 |
pub Spare2: [u8; 2], |
| 1737 |
pub MinSleep: SYSTEM_POWER_STATE, |
| 1738 |
pub MaxSleep: SYSTEM_POWER_STATE, |
| 1739 |
pub ReducedLatencySleep: SYSTEM_POWER_STATE, |
| 1740 |
pub WinLogonFlags: u32, |
| 1741 |
pub Spare3: u32, |
| 1742 |
pub DozeS4Timeout: u32, |
| 1743 |
pub BroadcastCapacityResolution: u32, |
| 1744 |
pub DischargePolicy: [SYSTEM_POWER_LEVEL; 4], |
| 1745 |
pub VideoTimeout: u32, |
| 1746 |
pub VideoDimDisplay: super::super::Foundation::BOOLEAN, |
| 1747 |
pub VideoReserved: [u32; 3], |
| 1748 |
pub SpindownTimeout: u32, |
| 1749 |
pub OptimizeForPower: super::super::Foundation::BOOLEAN, |
| 1750 |
pub FanThrottleTolerance: u8, |
| 1751 |
pub ForcedThrottle: u8, |
| 1752 |
pub MinThrottle: u8, |
| 1753 |
pub OverThrottled: POWER_ACTION_POLICY, |
| 1754 |
} |
| 1755 |
#[cfg(feature = "Win32_Foundation")] |
| 1756 |
impl ::core::marker::Copy for SYSTEM_POWER_POLICY {} |
| 1757 |
#[cfg(feature = "Win32_Foundation")] |
| 1758 |
impl ::core::clone::Clone for SYSTEM_POWER_POLICY { |
| 1759 |
fn clone(&self) -> Self { |
| 1760 |
*self |
| 1761 |
} |
| 1762 |
} |
| 1763 |
#[repr(C)] |
| 1764 |
pub struct SYSTEM_POWER_STATUS { |
| 1765 |
pub ACLineStatus: u8, |
| 1766 |
pub BatteryFlag: u8, |
| 1767 |
pub BatteryLifePercent: u8, |
| 1768 |
pub SystemStatusFlag: u8, |
| 1769 |
pub BatteryLifeTime: u32, |
| 1770 |
pub BatteryFullLifeTime: u32, |
| 1771 |
} |
| 1772 |
impl ::core::marker::Copy for SYSTEM_POWER_STATUS {} |
| 1773 |
impl ::core::clone::Clone for SYSTEM_POWER_STATUS { |
| 1774 |
fn clone(&self) -> Self { |
| 1775 |
*self |
| 1776 |
} |
| 1777 |
} |
| 1778 |
#[repr(C)] |
| 1779 |
pub struct THERMAL_EVENT { |
| 1780 |
pub Version: u32, |
| 1781 |
pub Size: u32, |
| 1782 |
pub Type: u32, |
| 1783 |
pub Temperature: u32, |
| 1784 |
pub TripPointTemperature: u32, |
| 1785 |
pub Initiator: ::windows_sys::core::PWSTR, |
| 1786 |
} |
| 1787 |
impl ::core::marker::Copy for THERMAL_EVENT {} |
| 1788 |
impl ::core::clone::Clone for THERMAL_EVENT { |
| 1789 |
fn clone(&self) -> Self { |
| 1790 |
*self |
| 1791 |
} |
| 1792 |
} |
| 1793 |
#[repr(C)] |
| 1794 |
pub struct THERMAL_INFORMATION { |
| 1795 |
pub ThermalStamp: u32, |
| 1796 |
pub ThermalConstant1: u32, |
| 1797 |
pub ThermalConstant2: u32, |
| 1798 |
pub Processors: usize, |
| 1799 |
pub SamplingPeriod: u32, |
| 1800 |
pub CurrentTemperature: u32, |
| 1801 |
pub PassiveTripPoint: u32, |
| 1802 |
pub CriticalTripPoint: u32, |
| 1803 |
pub ActiveTripPointCount: u8, |
| 1804 |
pub ActiveTripPoint: [u32; 10], |
| 1805 |
} |
| 1806 |
impl ::core::marker::Copy for THERMAL_INFORMATION {} |
| 1807 |
impl ::core::clone::Clone for THERMAL_INFORMATION { |
| 1808 |
fn clone(&self) -> Self { |
| 1809 |
*self |
| 1810 |
} |
| 1811 |
} |
| 1812 |
#[repr(C)] |
| 1813 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 1814 |
#[cfg(feature = "Win32_Foundation")] |
| 1815 |
pub struct THERMAL_POLICY { |
| 1816 |
pub Version: u32, |
| 1817 |
pub WaitForUpdate: super::super::Foundation::BOOLEAN, |
| 1818 |
pub Hibernate: super::super::Foundation::BOOLEAN, |
| 1819 |
pub Critical: super::super::Foundation::BOOLEAN, |
| 1820 |
pub ThermalStandby: super::super::Foundation::BOOLEAN, |
| 1821 |
pub ActivationReasons: u32, |
| 1822 |
pub PassiveLimit: u32, |
| 1823 |
pub ActiveLevel: u32, |
| 1824 |
pub OverThrottled: super::super::Foundation::BOOLEAN, |
| 1825 |
} |
| 1826 |
#[cfg(feature = "Win32_Foundation")] |
| 1827 |
impl ::core::marker::Copy for THERMAL_POLICY {} |
| 1828 |
#[cfg(feature = "Win32_Foundation")] |
| 1829 |
impl ::core::clone::Clone for THERMAL_POLICY { |
| 1830 |
fn clone(&self) -> Self { |
| 1831 |
*self |
| 1832 |
} |
| 1833 |
} |
| 1834 |
#[repr(C)] |
| 1835 |
pub struct THERMAL_WAIT_READ { |
| 1836 |
pub Timeout: u32, |
| 1837 |
pub LowTemperature: u32, |
| 1838 |
pub HighTemperature: u32, |
| 1839 |
} |
| 1840 |
impl ::core::marker::Copy for THERMAL_WAIT_READ {} |
| 1841 |
impl ::core::clone::Clone for THERMAL_WAIT_READ { |
| 1842 |
fn clone(&self) -> Self { |
| 1843 |
*self |
| 1844 |
} |
| 1845 |
} |
| 1846 |
#[repr(C)] |
| 1847 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 1848 |
#[cfg(feature = "Win32_Foundation")] |
| 1849 |
pub struct USER_POWER_POLICY { |
| 1850 |
pub Revision: u32, |
| 1851 |
pub IdleAc: POWER_ACTION_POLICY, |
| 1852 |
pub IdleDc: POWER_ACTION_POLICY, |
| 1853 |
pub IdleTimeoutAc: u32, |
| 1854 |
pub IdleTimeoutDc: u32, |
| 1855 |
pub IdleSensitivityAc: u8, |
| 1856 |
pub IdleSensitivityDc: u8, |
| 1857 |
pub ThrottlePolicyAc: u8, |
| 1858 |
pub ThrottlePolicyDc: u8, |
| 1859 |
pub MaxSleepAc: SYSTEM_POWER_STATE, |
| 1860 |
pub MaxSleepDc: SYSTEM_POWER_STATE, |
| 1861 |
pub Reserved: [u32; 2], |
| 1862 |
pub VideoTimeoutAc: u32, |
| 1863 |
pub VideoTimeoutDc: u32, |
| 1864 |
pub SpindownTimeoutAc: u32, |
| 1865 |
pub SpindownTimeoutDc: u32, |
| 1866 |
pub OptimizeForPowerAc: super::super::Foundation::BOOLEAN, |
| 1867 |
pub OptimizeForPowerDc: super::super::Foundation::BOOLEAN, |
| 1868 |
pub FanThrottleToleranceAc: u8, |
| 1869 |
pub FanThrottleToleranceDc: u8, |
| 1870 |
pub ForcedThrottleAc: u8, |
| 1871 |
pub ForcedThrottleDc: u8, |
| 1872 |
} |
| 1873 |
#[cfg(feature = "Win32_Foundation")] |
| 1874 |
impl ::core::marker::Copy for USER_POWER_POLICY {} |
| 1875 |
#[cfg(feature = "Win32_Foundation")] |
| 1876 |
impl ::core::clone::Clone for USER_POWER_POLICY { |
| 1877 |
fn clone(&self) -> Self { |
| 1878 |
*self |
| 1879 |
} |
| 1880 |
} |
| 1881 |
#[repr(C)] |
| 1882 |
pub struct WAKE_ALARM_INFORMATION { |
| 1883 |
pub TimerIdentifier: u32, |
| 1884 |
pub Timeout: u32, |
| 1885 |
} |
| 1886 |
impl ::core::marker::Copy for WAKE_ALARM_INFORMATION {} |
| 1887 |
impl ::core::clone::Clone for WAKE_ALARM_INFORMATION { |
| 1888 |
fn clone(&self) -> Self { |
| 1889 |
*self |
| 1890 |
} |
| 1891 |
} |
| 1892 |
pub type EFFECTIVE_POWER_MODE_CALLBACK = ::core::option::Option<unsafe extern "system" fn(mode: EFFECTIVE_POWER_MODE, context: *const ::core::ffi::c_void) -> ()>; |
| 1893 |
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>; |
| 1894 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 1895 |
#[cfg(feature = "Win32_Foundation")] |
| 1896 |
pub type PWRSCHEMESENUMPROC = ::core::option::Option<unsafe extern "system" fn(index: u32, namesize: u32, name: ::windows_sys::core::PCWSTR, descriptionsize: u32, description: ::windows_sys::core::PCWSTR, policy: *const POWER_POLICY, context: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOLEAN>; |
| 1897 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 1898 |
#[cfg(feature = "Win32_Foundation")] |
| 1899 |
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>; |