Power Management Functions


PowerGetActiveScheme Function

Retrieves the active power scheme and returns a GUID that identifies the scheme.

Syntax

C++
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 clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderPowrProf.h
LibraryPowrProf.lib
DLLPowrProf.dll

See Also

Power Management Functions

Send comments about this topic to Microsoft

Build date: 10/8/2009

Tags :


Page view tracker