GetActivePwrScheme

[DllImport("powrprof.dll", SetLastError = true)]
public static extern bool GetActivePwrScheme(
   IntPtr UserRootPowerKey,
   ref IntPtr ActivePolicyGuid
);

Microsoft documentation: Link

Last updated