Adapted for new register functions support (ESP_reg in register
[wine] / include / hook.h
1 /*
2  * Windows hook definitions
3  *
4  * Copyright 1994 Alexandre Julliard
5  */
6
7 #ifndef __WINE_HOOK_H
8 #define __WINE_HOOK_H
9
10 #include "windef.h"
11
12 #define HOOK_WIN16      0x00
13 #define HOOK_WIN32A     0x01
14 #define HOOK_WIN32W     0x02
15 #define HOOK_INUSE      0x80
16
17
18 /* hook type mask */
19 #define HOOK_MAPTYPE (HOOK_WIN16 | HOOK_WIN32A | HOOK_WIN32W)
20
21 extern HOOKPROC16 HOOK_GetProc16( HHOOK hhook );
22 extern BOOL HOOK_IsHooked( INT16 id );
23 extern LRESULT HOOK_CallHooks16( INT16 id, INT16 code, WPARAM16 wParam,
24                                  LPARAM lParam );
25 extern LRESULT HOOK_CallHooksA( INT id, INT code, WPARAM wParam,
26                                   LPARAM lParam );
27 extern LRESULT HOOK_CallHooksW( INT id, INT code, WPARAM wParam,
28                                   LPARAM lParam );
29 extern void HOOK_FreeModuleHooks( HMODULE16 hModule );
30 extern void HOOK_FreeQueueHooks( HQUEUE16 hQueue );
31 extern void HOOK_ResetQueueHooks( HQUEUE16 hQueue );
32 extern HOOKPROC HOOK_GetProc( HHOOK hook );
33
34 #endif  /* __WINE_HOOK_H */