UnregisterHotKey function user32

Win32Result<bool> UnregisterHotKey(
  1. HWND? hWnd,
  2. int id
)

Frees a hot key previously registered by the calling thread.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-unregisterhotkey.

Implementation

Win32Result<bool> UnregisterHotKey(HWND? hWnd, int id) {
  final result_ = UnregisterHotKey_Wrapper(hWnd ?? nullptr, id);
  return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}