Fixed some incorrect format strings.
[wine/multimedia.git] / include / winproc.h
blobd1602a1e584572828a8ec0df932bad5f13b22e7f
1 /*
2 * Window procedure callbacks definitions
4 * Copyright 1996 Alexandre Julliard
5 */
7 #ifndef __WINE_WINPROC_H
8 #define __WINE_WINPROC_H
10 #include "windef.h"
11 #include "wine/windef16.h"
13 typedef enum
15 WIN_PROC_INVALID,
16 WIN_PROC_16,
17 WIN_PROC_32A,
18 WIN_PROC_32W
19 } WINDOWPROCTYPE;
21 typedef enum
23 WIN_PROC_CLASS,
24 WIN_PROC_WINDOW,
25 WIN_PROC_TIMER
26 } WINDOWPROCUSER;
28 typedef void *HWINDOWPROC; /* Really a pointer to a WINDOWPROC */
30 typedef struct
32 WPARAM16 wParam;
33 LPARAM lParam;
34 LRESULT lResult;
35 } MSGPARAM16;
37 typedef struct
39 WPARAM wParam;
40 LPARAM lParam;
41 LRESULT lResult;
42 } MSGPARAM;
44 extern BOOL WINPROC_Init(void);
45 extern WNDPROC16 WINPROC_GetProc( HWINDOWPROC proc, WINDOWPROCTYPE type );
46 extern BOOL WINPROC_SetProc( HWINDOWPROC *pFirst, WNDPROC16 func,
47 WINDOWPROCTYPE type, WINDOWPROCUSER user );
48 extern void WINPROC_FreeProc( HWINDOWPROC proc, WINDOWPROCUSER user );
49 extern WINDOWPROCTYPE WINPROC_GetProcType( HWINDOWPROC proc );
51 extern INT WINPROC_MapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM *pwparam,
52 LPARAM *plparam );
53 extern INT WINPROC_MapMsg32WTo32A( HWND hwnd, UINT msg, WPARAM *pwparam,
54 LPARAM *plparam );
55 extern INT WINPROC_MapMsg16To32A( UINT16 msg16, WPARAM16 wParam16,
56 UINT *pmsg32, WPARAM *pwparam32,
57 LPARAM *plparam );
58 extern INT WINPROC_MapMsg16To32W( HWND16, UINT16 msg16, WPARAM16 wParam16,
59 UINT *pmsg32, WPARAM *pwparam32,
60 LPARAM *plparam );
61 extern INT WINPROC_MapMsg32ATo16( HWND hwnd, UINT msg32,
62 WPARAM wParam32, UINT16 *pmsg16,
63 WPARAM16 *pwparam16, LPARAM *plparam );
64 extern INT WINPROC_MapMsg32WTo16( HWND hwnd, UINT msg32,
65 WPARAM wParam32, UINT16 *pmsg16,
66 WPARAM16 *pwparam16, LPARAM *plparam );
67 extern void WINPROC_UnmapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM wParam,
68 LPARAM lParam );
69 extern void WINPROC_UnmapMsg32WTo32A( HWND hwnd, UINT msg, WPARAM wParam,
70 LPARAM lParam );
71 extern LRESULT WINPROC_UnmapMsg16To32A( HWND16 hwnd, UINT msg, WPARAM wParam,
72 LPARAM lParam, LRESULT result );
73 extern LRESULT WINPROC_UnmapMsg16To32W( HWND16 hwnd, UINT msg, WPARAM wParam,
74 LPARAM lParam, LRESULT result );
75 extern void WINPROC_UnmapMsg32ATo16( HWND hwnd, UINT msg, WPARAM wParam,
76 LPARAM lParam, MSGPARAM16* pm16 );
77 extern void WINPROC_UnmapMsg32WTo16( HWND hwnd, UINT msg, WPARAM wParam,
78 LPARAM lParam, MSGPARAM16* pm16 );
79 #endif /* __WINE_WINPROC_H */