[DllImport("powrprof.dll", SetLastError = true)] public static extern IntPtr PowerSettingRegisterNotification( IntPtr SettingGuid, uint Flags );
Microsoft documentation: Link
Last updated 4 months ago