PowerSettingRegisterNotification

[DllImport("powrprof.dll", SetLastError = true)]
public static extern IntPtr PowerSettingRegisterNotification(
   IntPtr SettingGuid,
   uint Flags
);

Microsoft documentation: Link

Last updated