PowerGetActiveScheme function
Retrieves the active power scheme and returns a GUID that identifies the scheme.
Syntax
DWORD WINAPI PowerGetActiveScheme( _In_opt_ HKEY UserRootPowerKey, _Out_ GUID **ActivePolicyGuid );
Parameters
- UserRootPowerKey [in, optional]
-
This parameter is reserved for future use and must be set to NULL.
- ActivePolicyGuid [out]
-
A pointer that receives a pointer to a GUID structure. Use the LocalFree function to free this memory.
Return value
Returns ERROR_SUCCESS (zero) if the call was successful, and a nonzero value if the call failed.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also