UnregisterPowerSettingNotification function user32
Unregisters the power setting notification.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-unregisterpowersettingnotification.
Implementation
Win32Result<bool> UnregisterPowerSettingNotification(HPOWERNOTIFY handle) {
resolveGetLastError();
final result_ = _UnregisterPowerSettingNotification(handle);
return .new(value: result_ != FALSE, error: GetLastError());
}