UnhookWindowsHookEx

From aldeid
Jump to navigation Jump to search

Description

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

Syntax

BOOL WINAPI UnhookWindowsHookEx(
  _In_  HHOOK hhk
);

Parameters

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

Return value

Type:

Type: BOOL

If the function succeeds, the return value is nonzero.

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