Sets the active power scheme for the current user.
Syntax
DWORD WINAPI PowerSetActiveScheme(
__in_opt HKEY UserRootPowerKey,
__in const GUID *SchemeGuid
);
Parameters
- UserRootPowerKey [in, optional]
-
This parameter is reserved for future use and must be set to NULL.
- SchemeGuid [in]
-
The identifier of the power scheme.
Return Value
Returns ERROR_SUCCESS (zero) if the call was successful, and a non-zero value if
the call failed.
Requirements
| Minimum supported client | Windows Vista |
| Minimum supported server | Windows Server 2008 |
| Header | PowrProf.h |
| Library | PowrProf.lib |
| DLL | PowrProf.dll |
See Also
- Power Management Functions
Send comments about this topic to Microsoft
Build date: 11/19/2009