2 * Window procedure callbacks definitions
4 * Copyright 1996 Alexandre Julliard
7 #ifndef __WINE_WINPROC_H
8 #define __WINE_WINPROC_H
11 #include "wine/windef16.h"
28 typedef void *HWINDOWPROC
; /* Really a pointer to a WINDOWPROC */
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
,
53 extern INT
WINPROC_MapMsg32WTo32A( HWND hwnd
, UINT msg
, WPARAM
*pwparam
,
55 extern INT
WINPROC_MapMsg16To32A( UINT16 msg16
, WPARAM16 wParam16
,
56 UINT
*pmsg32
, WPARAM
*pwparam32
,
58 extern INT
WINPROC_MapMsg16To32W( HWND16
, UINT16 msg16
, WPARAM16 wParam16
,
59 UINT
*pmsg32
, WPARAM
*pwparam32
,
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
,
69 extern void WINPROC_UnmapMsg32WTo32A( HWND hwnd
, UINT msg
, WPARAM wParam
,
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 */