hook.h 824 Bytes
Newer Older
Alexandre Julliard's avatar
Alexandre Julliard committed
1 2 3 4 5 6
/*
 * Windows hook definitions
 *
 * Copyright 1994 Alexandre Julliard
 */

Alexandre Julliard's avatar
Alexandre Julliard committed
7 8
#ifndef __WINE_HOOK_H
#define __WINE_HOOK_H
Alexandre Julliard's avatar
Alexandre Julliard committed
9

10
#include "windef.h"
Alexandre Julliard's avatar
Alexandre Julliard committed
11

Alexandre Julliard's avatar
Alexandre Julliard committed
12 13 14 15 16
#define HOOK_WIN16	0x00
#define HOOK_WIN32A	0x01
#define HOOK_WIN32W	0x02
#define HOOK_INUSE	0x80

17

Alexandre Julliard's avatar
Alexandre Julliard committed
18
/* hook type mask */
Alexandre Julliard's avatar
Alexandre Julliard committed
19
#define HOOK_MAPTYPE (HOOK_WIN16 | HOOK_WIN32A | HOOK_WIN32W)
Alexandre Julliard's avatar
Alexandre Julliard committed
20

21
extern BOOL HOOK_IsHooked( INT16 id );
Alexandre Julliard's avatar
Alexandre Julliard committed
22 23
extern LRESULT HOOK_CallHooks16( INT16 id, INT16 code, WPARAM16 wParam,
				 LPARAM lParam );
24
extern LRESULT HOOK_CallHooksA( INT id, INT code, WPARAM wParam,
Alexandre Julliard's avatar
Alexandre Julliard committed
25
				  LPARAM lParam );
26
extern LRESULT HOOK_CallHooksW( INT id, INT code, WPARAM wParam,
Alexandre Julliard's avatar
Alexandre Julliard committed
27
				  LPARAM lParam );
Alexandre Julliard's avatar
Alexandre Julliard committed
28 29
extern void HOOK_FreeModuleHooks( HMODULE16 hModule );
extern void HOOK_FreeQueueHooks( HQUEUE16 hQueue );
Alexandre Julliard's avatar
Alexandre Julliard committed
30
extern void HOOK_ResetQueueHooks( HQUEUE16 hQueue );
Alexandre Julliard's avatar
Alexandre Julliard committed
31

Alexandre Julliard's avatar
Alexandre Julliard committed
32
#endif  /* __WINE_HOOK_H */