UnregisterPowerSettingNotification function user32

Win32Result<bool> UnregisterPowerSettingNotification(
  1. HPOWERNOTIFY handle
)

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) {
  final result_ = UnregisterPowerSettingNotification_Wrapper(handle);
  return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}