PowrProfPowerGetActiveScheme Method
Retrieves the active power scheme and returns a GUID that identifies the scheme.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("PowrProf.dll")]
public static Win32ErrorCode PowerGetActiveScheme(
[OptionalAttribute] IntPtr rootPowerKey,
ref Guid refSchemeGuid
)
<DllImportAttribute("PowrProf.dll">]
Public Shared Function PowerGetActiveScheme (
<OptionalAttribute> rootPowerKey As IntPtr,
ByRef refSchemeGuid As Guid
) As Win32ErrorCode
Dim rootPowerKey As IntPtr
Dim refSchemeGuid As Guid
Dim returnValue As Win32ErrorCode
returnValue = PowrProf.PowerGetActiveScheme(rootPowerKey,
refSchemeGuid)
public:
[DllImportAttribute(L"PowrProf.dll")]
static Win32ErrorCode PowerGetActiveScheme(
[OptionalAttribute] IntPtr rootPowerKey,
Guid% refSchemeGuid
)
[<DllImportAttribute("PowrProf.dll")>]
static member PowerGetActiveScheme :
[<OptionalAttribute>] rootPowerKey : IntPtr *
refSchemeGuid : Guid byref -> Win32ErrorCode
No code example is currently available or this language may not be supported.
- rootPowerKey IntPtr (Optional)
-
Reserved for future use, this must be set to Zero.
- refSchemeGuid Guid
-
Returns a Guid referring to the currently active power scheme.
Win32ErrorCode
Returns
ERROR_SUCCESS (zero) if the call was successful,
and a nonzero value if the call failed.