Click to Rate and Give Feedback
MSDN
MSDN Library
System Services
Power Management
 PowerGetActiveScheme Function

  Switch on low bandwidth view
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: 5/7/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker