Release 970112
[wine.git] / include / winproc.h
blob1a5ba1117b40382b8a21be16106ce59c9d386905
1 /*
2 * Window procedure callbacks definitions
4 * Copyright 1996 Alexandre Julliard
5 */
7 #ifndef __WINE_WINPROC_H
8 #define __WINE_WINPROC_H
10 #include "wintypes.h"
12 typedef enum
14 WIN_PROC_INVALID,
15 WIN_PROC_16,
16 WIN_PROC_32A,
17 WIN_PROC_32W
18 } WINDOWPROCTYPE;
20 typedef void *HWINDOWPROC; /* Really a pointer to a WINDOWPROC */
22 extern BOOL32 WINPROC_Init(void);
23 extern WNDPROC16 WINPROC_GetProc( HWINDOWPROC proc, WINDOWPROCTYPE type );
24 extern BOOL32 WINPROC_SetProc( HWINDOWPROC *pFirst, WNDPROC16 func,
25 WINDOWPROCTYPE type );
26 extern void WINPROC_FreeProc( HWINDOWPROC proc );
27 extern WINDOWPROCTYPE WINPROC_GetProcType( HWINDOWPROC proc );
29 extern INT32 WINPROC_MapMsg32ATo32W( UINT32 msg, WPARAM32 wParam,
30 LPARAM *plparam );
31 extern INT32 WINPROC_MapMsg32WTo32A( UINT32 msg, WPARAM32 wParam,
32 LPARAM *plparam );
33 extern INT32 WINPROC_MapMsg16To32A( UINT16 msg16, WPARAM16 wParam16,
34 UINT32 *pmsg32, WPARAM32 *pwparam32,
35 LPARAM *plparam );
36 extern INT32 WINPROC_MapMsg16To32W( UINT16 msg16, WPARAM16 wParam16,
37 UINT32 *pmsg32, WPARAM32 *pwparam32,
38 LPARAM *plparam );
39 extern INT32 WINPROC_MapMsg32ATo16( UINT32 msg32, WPARAM32 wParam32,
40 UINT16 *pmsg16, WPARAM16 *pwparam16,
41 LPARAM *plparam );
42 extern INT32 WINPROC_MapMsg32WTo16( UINT32 msg32, WPARAM32 wParam32,
43 UINT16 *pmsg16, WPARAM16 *pwparam16,
44 LPARAM *plparam );
45 extern void WINPROC_UnmapMsg32ATo32W( UINT32 msg, WPARAM32 wParam,
46 LPARAM lParam );
47 extern void WINPROC_UnmapMsg32WTo32A( UINT32 msg, WPARAM32 wParam,
48 LPARAM lParam );
49 extern void WINPROC_UnmapMsg16To32A( UINT32 msg, WPARAM32 wParam,
50 LPARAM lParam );
51 extern void WINPROC_UnmapMsg16To32W( UINT32 msg, WPARAM32 wParam,
52 LPARAM lParam );
53 extern void WINPROC_UnmapMsg32ATo16( UINT32 msg, WPARAM16 wParam,
54 LPARAM lParam );
55 extern void WINPROC_UnmapMsg32WTo16( UINT32 msg, WPARAM16 wParam,
56 LPARAM lParam );
58 #endif /* __WINE_WINPROC_H */