Release 970509
[wine/multimedia.git] / include / winproc.h
blobc6018988c44f75570495afd1afb0a6efb6f30e8e
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 enum
22 WIN_PROC_CLASS,
23 WIN_PROC_WINDOW,
24 WIN_PROC_TIMER
25 } WINDOWPROCUSER;
27 typedef void *HWINDOWPROC; /* Really a pointer to a WINDOWPROC */
29 typedef struct
31 WPARAM16 wParam;
32 LPARAM lParam;
33 LRESULT lResult;
34 } MSGPARAM16;
36 typedef struct
38 WPARAM32 wParam;
39 LPARAM lParam;
40 LRESULT lResult;
41 } MSGPARAM32;
43 extern BOOL32 WINPROC_Init(void);
44 extern WNDPROC16 WINPROC_GetProc( HWINDOWPROC proc, WINDOWPROCTYPE type );
45 extern BOOL32 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 INT32 WINPROC_MapMsg32ATo32W( UINT32 msg, WPARAM32 wParam,
51 LPARAM *plparam );
52 extern INT32 WINPROC_MapMsg32WTo32A( UINT32 msg, WPARAM32 wParam,
53 LPARAM *plparam );
54 extern INT32 WINPROC_MapMsg16To32A( UINT16 msg16, WPARAM16 wParam16,
55 UINT32 *pmsg32, WPARAM32 *pwparam32,
56 LPARAM *plparam );
57 extern INT32 WINPROC_MapMsg16To32W( UINT16 msg16, WPARAM16 wParam16,
58 UINT32 *pmsg32, WPARAM32 *pwparam32,
59 LPARAM *plparam );
60 extern INT32 WINPROC_MapMsg32ATo16( UINT32 msg32, WPARAM32 wParam32,
61 UINT16 *pmsg16, WPARAM16 *pwparam16,
62 LPARAM *plparam );
63 extern INT32 WINPROC_MapMsg32WTo16( UINT32 msg32, WPARAM32 wParam32,
64 UINT16 *pmsg16, WPARAM16 *pwparam16,
65 LPARAM *plparam );
66 extern void WINPROC_UnmapMsg32ATo32W( UINT32 msg, WPARAM32 wParam,
67 LPARAM lParam );
68 extern void WINPROC_UnmapMsg32WTo32A( UINT32 msg, WPARAM32 wParam,
69 LPARAM lParam );
70 extern void WINPROC_UnmapMsg16To32A( UINT32 msg, WPARAM32 wParam,
71 LPARAM lParam );
72 extern void WINPROC_UnmapMsg16To32W( UINT32 msg, WPARAM32 wParam,
73 LPARAM lParam );
74 extern void WINPROC_UnmapMsg32ATo16( UINT32 msg, WPARAM32 wParam,
75 LPARAM lParam, MSGPARAM16* pm16 );
76 extern void WINPROC_UnmapMsg32WTo16( UINT32 msg, WPARAM32 wParam,
77 LPARAM lParam, MSGPARAM16* pm16 );
79 typedef LRESULT (*WINPROC_CALLWNDPROC16)(WNDPROC16,HWND16,UINT16,WPARAM16,LPARAM);
80 typedef LRESULT (*WINPROC_CALLWNDPROC32)(WNDPROC32,HWND32,UINT32,WPARAM32,LPARAM);
81 extern void WINPROC_SetCallWndProc16( WINPROC_CALLWNDPROC16 proc );
82 extern void WINPROC_SetCallWndProc32( WINPROC_CALLWNDPROC32 proc );
84 #endif /* __WINE_WINPROC_H */