RegisterPowerSettingNotification function user32
Registers the application to receive power setting notifications for the specific power setting event.
HPOWERNOTIFY RegisterPowerSettingNotification(
HANDLE hRecipient,
LPCGUID PowerSettingGuid,
DWORD Flags
);
Implementation
int RegisterPowerSettingNotification(
int hRecipient, Pointer<GUID> PowerSettingGuid, int Flags) =>
_RegisterPowerSettingNotification(hRecipient, PowerSettingGuid, Flags);