.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH SetWinEventHook 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBSetWinEventHook\fR (USER32.@) .SH SYNOPSIS HWINEVENTHOOK SetWinEventHook ( DWORD \fIevent_min\fR, DWORD \fIevent_max\fR, HMODULE \fIinst\fR, WINEVENTPROC \fIproc\fR, DWORD \fIpid\fR, DWORD \fItid\fR, DWORD \fIflags\fR ) .SH DESCRIPTION .PP Set up an event hook for a set of events. .SH PARAMS \fIevent_min\fR \fB[In]\fR Lowest event handled by pfnProc. .PP \fIevent_max\fR \fB[In]\fR Highest event handled by pfnProc. .PP \fIinst\fR \fB[In]\fR dll containing pfnProc. .PP \fIproc\fR \fB[In]\fR Callback event hook function. .PP \fIpid\fR \fB[In]\fR Process to get events from, or \fB0\fR for all processes. .PP \fItid\fR \fB[In]\fR Thread to get events from, or \fB0\fR for all threads. .PP \fIflags\fR \fB[In]\fR Flags indicating the status of pfnProc. .PP .SH RETURNS .PP \fBSuccess:\fR A handle representing the hook. .PP \fBFailure:\fR A \fBNULL\fR handle. .SH IMPLEMENTATION .PP Declared in \fB"winuser.h"\fR. .PP Implemented in \fB"dlls/user32/hook.c"\fR. .PP Debug channel \fB"hook"\fR.