SetWinEventHook(3w)

SetWinEventHook3w

Usage

HWINEVENTHOOK SetWinEventHook
(
DWORD event_min,
DWORD event_max,
HMODULE inst,
WINEVENTPROC proc,
DWORD pid,
DWORD tid,
DWORD flags
)

Overview

Set up an event hook for a set of events.

Params

event_min [In] Lowest event handled by pfnProc.

event_max [In] Highest event handled by pfnProc.

inst [In] dll containing pfnProc.

proc [In] Callback event hook function.

pid [In] Process to get events from, or 0 for all processes.

tid [In] Thread to get events from, or 0 for all threads.

flags [In] Flags indicating the status of pfnProc.

Returns

Success: A handle representing the hook.

Failure: A NULL handle.

Implementation

Declared in "winuser.h".

Implemented in "dlls/user32/hook.c".

Debug channel "hook".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.