UnhookWindowsHookEx function user32

Win32Result<bool> UnhookWindowsHookEx(
  1. HHOOK hhk
)

Removes a hook procedure installed in a hook chain by the SetWindowsHookEx function.

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

Implementation

Win32Result<bool> UnhookWindowsHookEx(HHOOK hhk) {
  final result_ = UnhookWindowsHookEx_Wrapper(hhk);
  return .new(value: result_.value.i32 != FALSE, error: result_.error);
}