packages/Windows API Code Pack 1.1/source/WindowsAPICodePack/Core/Interop/PowerManagement/PowerManagementNativeMethods.cs
/// <summary>
/// Gets the Guid relating to the currently active power scheme.
/// </summary>
/// <param name="rootPowerKey">Reserved for future use, this must be set to IntPtr.Zero</param>
/// <param name="activePolicy">Returns a Guid referring to the currently active power scheme.</param>
Gets the Guid relating to the currently active power scheme.
Gets the Guid relating to the currently active power scheme .
[DllImport("powrprof.dll")]
        internal static extern void PowerGetActiveScheme(
            IntPtr rootPowerKey,
            [MarshalAs(UnmanagedType.LPStruct)]
            out Guid activePolicy);
[ DllImport ( " " ) ] internal static extern void PowerGetActiveScheme ( IntPtr rootPowerKey , [ MarshalAs ( UnmanagedType . LPStruct ) ] out Guid activePolicy ) ;
Gets the Guid relating to the currently active power scheme.
Gets the Guid relating to the currently active power scheme .
rootPowerKey
IntPtr
Reserved for future use, this must be set to IntPtr.Zero
Reserved for future use this must be set to IntPtr . Zero
out
[MarshalAs(UnmanagedType.LPStruct)]
activePolicy
Returns a Guid referring to the currently active power scheme.
Returns a Guid referring to the currently active power scheme .