[DllImport("powrprof.dll", SetLastError = true)] public static extern int CallNtPowerInformation( int InformationLevel, IntPtr lpInputBuffer, uint nInputBufferSize, IntPtr lpOutputBuffer, uint nOutputBufferSize );
Microsoft documentation: Link
Last updated 1 year ago