mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
894077f402
Miscellaneous patches to header files. All of these are supposedly there to help build Winelib applications.
52 lines
1.2 KiB
C
52 lines
1.2 KiB
C
/*
|
|
* Windows hook definitions
|
|
*
|
|
* Copyright 1994 Alexandre Julliard
|
|
*/
|
|
|
|
#ifndef __WINE_HOOK_H
|
|
#define __WINE_HOOK_H
|
|
|
|
#include "windows.h"
|
|
|
|
#define HOOK_WIN16 0x00
|
|
#define HOOK_WIN32A 0x01
|
|
#define HOOK_WIN32W 0x02
|
|
#define HOOK_INUSE 0x80
|
|
|
|
typedef struct
|
|
{
|
|
LPARAM lParam;
|
|
WPARAM16 wParam;
|
|
UINT16 message;
|
|
HWND16 hwnd;
|
|
} CWPSTRUCT16, *LPCWPSTRUCT16;
|
|
|
|
typedef struct
|
|
{
|
|
LPARAM lParam;
|
|
WPARAM32 wParam;
|
|
UINT32 message;
|
|
HWND32 hwnd;
|
|
} CWPSTRUCT32, *LPCWPSTRUCT32;
|
|
|
|
DECL_WINELIB_TYPE(CWPSTRUCT)
|
|
DECL_WINELIB_TYPE(LPCWPSTRUCT)
|
|
|
|
/* hook type mask */
|
|
#define HOOK_MAPTYPE (HOOK_WIN16 | HOOK_WIN32A | HOOK_WIN32W)
|
|
|
|
extern HOOKPROC16 HOOK_GetProc16( HHOOK hhook );
|
|
extern BOOL32 HOOK_IsHooked( INT16 id );
|
|
extern LRESULT HOOK_CallHooks16( INT16 id, INT16 code, WPARAM16 wParam,
|
|
LPARAM lParam );
|
|
extern LRESULT HOOK_CallHooks32A( INT32 id, INT32 code, WPARAM32 wParam,
|
|
LPARAM lParam );
|
|
extern LRESULT HOOK_CallHooks32W( INT32 id, INT32 code, WPARAM32 wParam,
|
|
LPARAM lParam );
|
|
extern void HOOK_FreeModuleHooks( HMODULE16 hModule );
|
|
extern void HOOK_FreeQueueHooks( HQUEUE16 hQueue );
|
|
extern void HOOK_ResetQueueHooks( HQUEUE16 hQueue );
|
|
extern HOOKPROC32 HOOK_GetProc( HHOOK hook );
|
|
|
|
#endif /* __WINE_HOOK_H */
|