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