PowerSettingAccessCheck function (powrprof.h)
Queries for a group policy override for specified power settings.
Syntax
DWORD PowerSettingAccessCheck(
[in] POWER_DATA_ACCESSOR AccessFlags,
[in, optional] const GUID *PowerGuid
);
Parameters
[in] AccessFlags
The type of access to check for group policy overrides.
[in, optional] PowerGuid
The identifier of the power setting.
Return value
Returns ERROR_SUCCESS (zero) if the call was successful, and a nonzero value if the call failed.
Return code/value | Description |
---|---|
|
The specified power setting is not currently overridden by a group policy. |
|
This program is blocked by group policy. For more information, contact your system administrator. |
|
Only Administrators can remotely access power settings. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | powrprof.h |
Library | PowrProf.lib |
DLL | PowrProf.dll |