PowerReplaceDefaultPowerSchemes function (powrprof.h)
Replaces the default power schemes with the current user's power schemes. This allows an administrator to change the default power schemes for the system. Replacing the default schemes enables users to use the Restore Defaults option in the Control Panel Power Options application to restore customized power scheme defaults instead of the original Windows power scheme defaults.
Syntax
DWORD PowerReplaceDefaultPowerSchemes();
Return value
Returns ERROR_SUCCESS (zero) if the call was successful, and a nonzero value if the call failed.
Remarks
The caller must be a member of the local Administrators group.
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 |