Name

UnhookWindowsHookEx

Synopsis

Removes the specified window’s hook:

Private Declare Function UnhookWindowsHookEx Lib "user32" _
                         (ByVal hHook As Long) As Long

Parameters

hHook

The handle to the hook. The SetWindowHookEx function returns this hook handle.

Return Value

A return value of zero indicates failure; otherwise, the hook is removed.

Get Subclassing and Hooking with Visual Basic now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.