PowerReadSettingAttributes function (powrprof.h)
Returns the current attribute of the specified power setting. If the SubGroupGuid parameter is NULL then the attribute for PowerSettingGuid is returned. If the PowerSettingGuid parameter is NULL then the attribute for SubGroupGuid is returned. If both the SubGroupGuid and PowerSettingGuid parameters are valid then the return value is the combination (bitwise OR) of the attributes of the subgroup and the power setting.
Syntax
DWORD PowerReadSettingAttributes(
[in] const GUID *SubGroupGuid,
[in] const GUID *PowerSettingGuid
);
Parameters
[in] SubGroupGuid
The subgroup of power settings. This parameter can be one of the following values defined in WinNT.h. Use NO_SUBGROUP_GUID to refer to the default power scheme.
These values are the subgroup values included with Windows.
[in] PowerSettingGuid
The identifier of the power setting that is being used.
Return value
Returns the current power setting attributes of the specified power setting. The attribute is a combination of the attributes of the power setting and the attributes of its subgroup.
Return code/value | Description |
---|---|
|
Hide this power setting. |
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 |