CallNextHookEx

3.1

  LRESULT CallNextHookEx(hHook, nCode, wParam, lParam)    
  HHOOK hHook; /* handle of hook function */
  int nCode; /* hook code */
  WPARAM wParam; /* first message parameter */
  LPARAM lParam; /* second message parameter */

The CallNextHookEx function passes the hook information to the next hook function in the hook chain.

Parameters

hHook

Identifies the current hook function.

nCode

Specifies the hook code to pass to the next hook function. A hook function uses this code to determine how to process the message sent to the hook.

wParam

Specifies 16 bits of additional message-dependent information.

lParam

Specifies 32 bits of additional message-dependent information.

Return Value

The return value specifies the result of the message processing and depends on the value of the nCode parameter.

Comments

Calling the CallNextHookEx function is optional. An application can call this function either before or after completing any processing in its own hook function. If an application does not call CallNextHookEx, Windows will not call the hook functions that were installed before the application's hook function was installed.

See Also

SetWindowsHookEx, UnhookWindowsHookEx