PowerWriteSettingAttributes function
Applies to: desktop apps only
Sets the power attributes of a power key. If the PowerSettingGuid parameter is NULL then the attribute for SubGroupGuid is set, otherwise the attribute for PowerSettingGuid is set.
Syntax
DWORD WINAPI PowerWriteSettingAttributes( __in const GUID *SubGroupGuid, __in const GUID *PowerSettingGuid, __in DWORD Attributes );
Parameters
- SubGroupGuid [in]
-
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.
- PowerSettingGuid [in]
-
The identifier of the power setting.
- Attributes [in]
-
The attributes to be associated with the specified power setting.
Value Meaning - POWER_ATTRIBUTE_HIDE
- 1
Hide this power setting.
Return value
Returns ERROR_SUCCESS (zero) if the call was successful, and a nonzero value if the call failed.
Remarks
Changes to the settings for the active power scheme do not take effect until you call the PowerSetActiveScheme function.
Requirements
|
Minimum supported client | Windows Vista |
|---|---|
|
Minimum supported server | Windows Server 2008 |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 2/7/2012