1 // Copyright © 2016-2017 winapi-rs developers
2 // Licensed under the Apache License, Version 2.0
3 // <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
4 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
5 // All files in the project carrying such notice may not be copied, modified, or distributed
6 // except according to those terms.
7 use shared
::guiddef
::{GUID, LPCGUID}
;
8 use shared
::minwindef
::{DWORD, HKEY, LPBYTE, LPDWORD, PUCHAR, PULONG}
;
9 use um
::winnt
::{HANDLE}
;
10 use um
::winuser
::{HPOWERNOTIFY, PHPOWERNOTIFY}
;
12 pub fn PowerReadACValue(
14 SchemeGuid
: *const GUID
,
15 SubGroupOfPowerSettingsGuid
: *const GUID
,
16 PowerSettingGuid
: *const GUID
,
21 pub fn PowerReadDCValue(
23 SchemeGuid
: *const GUID
,
24 SubGroupOfPowerSettingsGuid
: *const GUID
,
25 PowerSettingGuid
: *const GUID
,
30 pub fn PowerWriteACValueIndex(
32 SchemeGuid
: *const GUID
,
33 SubGroupOfPowerSettingsGuid
: *const GUID
,
34 PowerSettingGuid
: *const GUID
,
37 pub fn PowerWriteDCValueIndex(
39 SchemeGuid
: *const GUID
,
40 SubGroupOfPowerSettingsGuid
: *const GUID
,
41 PowerSettingGuid
: *const GUID
,
44 pub fn PowerGetActiveScheme(
45 UserRootPowerKey
: HKEY
,
46 ActivePolicyGuid
: *mut *mut GUID
,
48 pub fn PowerSetActiveScheme(
49 UserRootPowerKey
: HKEY
,
50 SchemeGuid
: *const GUID
,
52 pub fn PowerSettingRegisterNotification(
56 RegistrationHandle
: PHPOWERNOTIFY
,
58 pub fn PowerSettingUnregisterNotification(
59 RegistrationHandle
: HPOWERNOTIFY
,