PowerWriteSettingAttributes function
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 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also