2 * Window procedure callbacks definitions
4 * Copyright 1996 Alexandre Julliard
7 #ifndef __WINE_WINPROC_H
8 #define __WINE_WINPROC_H
27 typedef void *HWINDOWPROC; /* Really a pointer to a WINDOWPROC */
43 extern BOOL WINPROC_Init(void);
44 extern WNDPROC16 WINPROC_GetProc( HWINDOWPROC proc, WINDOWPROCTYPE type );
45 extern BOOL WINPROC_SetProc( HWINDOWPROC *pFirst, WNDPROC16 func,
46 WINDOWPROCTYPE type, WINDOWPROCUSER user );
47 extern void WINPROC_FreeProc( HWINDOWPROC proc, WINDOWPROCUSER user );
48 extern WINDOWPROCTYPE WINPROC_GetProcType( HWINDOWPROC proc );
50 extern INT WINPROC_MapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM wParam,
52 extern INT WINPROC_MapMsg32WTo32A( HWND hwnd, UINT msg, WPARAM wParam,
54 extern INT WINPROC_MapMsg16To32A( UINT16 msg16, WPARAM16 wParam16,
55 UINT *pmsg32, WPARAM *pwparam32,
57 extern INT WINPROC_MapMsg16To32W( HWND16, UINT16 msg16, WPARAM16 wParam16,
58 UINT *pmsg32, WPARAM *pwparam32,
60 extern INT WINPROC_MapMsg32ATo16( HWND hwnd, UINT msg32,
61 WPARAM wParam32, UINT16 *pmsg16,
62 WPARAM16 *pwparam16, LPARAM *plparam );
63 extern INT WINPROC_MapMsg32WTo16( HWND hwnd, UINT msg32,
64 WPARAM wParam32, UINT16 *pmsg16,
65 WPARAM16 *pwparam16, LPARAM *plparam );
66 extern void WINPROC_UnmapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM wParam,
68 extern void WINPROC_UnmapMsg32WTo32A( HWND hwnd, UINT msg, WPARAM wParam,
70 extern LRESULT WINPROC_UnmapMsg16To32A( HWND16 hwnd, UINT msg, WPARAM wParam,
71 LPARAM lParam, LRESULT result );
72 extern LRESULT WINPROC_UnmapMsg16To32W( HWND16 hwnd, UINT msg, WPARAM wParam,
73 LPARAM lParam, LRESULT result );
74 extern void WINPROC_UnmapMsg32ATo16( HWND hwnd, UINT msg, WPARAM wParam,
75 LPARAM lParam, MSGPARAM16* pm16 );
76 extern void WINPROC_UnmapMsg32WTo16( HWND hwnd, UINT msg, WPARAM wParam,
77 LPARAM lParam, MSGPARAM16* pm16 );
78 #endif /* __WINE_WINPROC_H */