UnhookWindowsHookEx (Compact 7)

3/12/2014

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

Syntax

BOOL WINAPI UnhookWindowsHookEx(
  _In_  HHOOK hhk
);

Parameters

  • hhk
    [in] A handle to the hook to be removed. This parameter is a hook handle obtained by a previous call to SetWindowsHookEx.

Return Value

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE. To get extended error information, call GetLastError.

Remarks

UnhookWindowsHookEx succeeds only once after call the SetWindowsHookEx.

See Also

Reference

Window Functions