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 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: 10/8/2009