PowerRestoreDefaultPowerSchemes function (powrprof.h)
Replaces the power schemes for the system with default power schemes. All current power schemes and settings are deleted and replaced with the default system power schemes.
C++
DWORD PowerRestoreDefaultPowerSchemes();
Returns ERROR_SUCCESS (zero) if the call was successful, and a nonzero value if the call failed.
The caller must be a member of the local Administrators group.
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 |