[DllImport("powrprof.dll", SetLastError = true)] public static extern bool GetPwrCapabilities( ref SYSTEM_POWER_CAPABILITIES lpspc );
Microsoft documentation: Link
Last updated 1 year ago