Power Management Functions


PowerSetActiveScheme Function

Sets the active power scheme for the current user.

Syntax

C++
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 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: 11/19/2009

Tags : tech2008


Page view tracker