EnumPwrSchemes

[DllImport("powrprof.dll", SetLastError = true)]
public static extern bool EnumPwrSchemes(
   IntPtr hUser,
   uint Flags,
   ref IntPtr pRet,
   ref uint lpdwBufferSize
);

Microsoft documentation: Link

Last updated