4 * Copyright 1995 Alexandre Julliard
7 #ifndef __WINE_CALLBACK_H
8 #define __WINE_CALLBACK_H
12 #include "wine/winuser16.h"
14 extern int (*IF1632_CallLargeStack
)( int (*func
)(void), void *arg
);
16 #define CALL_LARGE_STACK(func,arg) \
17 (IF1632_CallLargeStack ? \
18 IF1632_CallLargeStack( (int(*)())(func), (void *)(arg) ) : \
19 ((int(*)())(func))((void *)arg))
23 LONG (CALLBACK
*CallRegisterShortProc
)( CONTEXT
*, INT
);
24 LONG (CALLBACK
*CallRegisterLongProc
)( CONTEXT
*, INT
);
25 BOOL (CALLBACK
*CallTaskRescheduleProc
)(void);
26 VOID (CALLBACK
*CallFrom16WndProc
)(void);
27 LRESULT (CALLBACK
*CallWndProc
)( WNDPROC16
, HWND16
, UINT16
,
29 LRESULT (CALLBACK
*CallDriverProc
)( DRIVERPROC16
, DWORD
, HDRVR16
,
30 UINT16
, LPARAM
, LPARAM
);
31 LRESULT (CALLBACK
*CallDriverCallback
)( FARPROC16
, HANDLE16
, UINT16
,
32 DWORD
, LPARAM
, LPARAM
);
33 LRESULT (CALLBACK
*CallTimeFuncProc
)( FARPROC16
, WORD
, UINT16
,
34 DWORD
, LPARAM
, LPARAM
);
35 INT16 (CALLBACK
*CallWindowsExitProc
)( FARPROC16
, INT16
);
36 INT16 (CALLBACK
*CallWordBreakProc
)( EDITWORDBREAKPROC16
, SEGPTR
, INT16
,
38 VOID (CALLBACK
*CallBootAppProc
)( FARPROC16
, HANDLE16
, HFILE16
);
39 WORD (CALLBACK
*CallLoadAppSegProc
)( FARPROC16
, HANDLE16
, HFILE16
, WORD
);
40 WORD (CALLBACK
*CallLocalNotifyFunc
)( FARPROC16
, WORD
, HLOCAL16
, WORD
);
41 HGLOBAL16 (CALLBACK
*CallResourceHandlerProc
)( FARPROC16
, HGLOBAL16
, HMODULE16
, HRSRC16
);
42 DWORD (CALLBACK
*CallWOWCallbackProc
)( FARPROC16
, DWORD
);
43 BOOL (CALLBACK
*CallWOWCallback16Ex
)( FARPROC16
, DWORD
, DWORD
, LPVOID
,
45 DWORD (CALLBACK
*CallUTProc
)( FARPROC16
, DWORD
, DWORD
);
46 LRESULT (CALLBACK
*CallASPIPostProc
)( FARPROC16
, SEGPTR
);
47 /* Following are the graphics driver callbacks */
48 WORD (CALLBACK
*CallDrvControlProc
)( FARPROC16
, SEGPTR
, WORD
,
50 WORD (CALLBACK
*CallDrvEnableProc
)( FARPROC16
, SEGPTR
, WORD
, SEGPTR
,
52 WORD (CALLBACK
*CallDrvEnumDFontsProc
)( FARPROC16
, SEGPTR
, SEGPTR
,
54 WORD (CALLBACK
*CallDrvEnumObjProc
)( FARPROC16
, SEGPTR
, WORD
, FARPROC16
,
56 WORD (CALLBACK
*CallDrvOutputProc
)( FARPROC16
, SEGPTR
, WORD
, WORD
, SEGPTR
,
57 SEGPTR
, SEGPTR
, SEGPTR
, SEGPTR
);
58 DWORD (CALLBACK
*CallDrvRealizeProc
)( FARPROC16
, SEGPTR
, WORD
, SEGPTR
,
60 WORD (CALLBACK
*CallDrvStretchBltProc
)( FARPROC16
, SEGPTR
, WORD
, WORD
,
61 WORD
, WORD
, SEGPTR
, WORD
, WORD
,
62 WORD
, WORD
, DWORD
, SEGPTR
, SEGPTR
,
64 DWORD (CALLBACK
*CallDrvExtTextOutProc
)( FARPROC16
, SEGPTR
, WORD
, WORD
,
65 SEGPTR
, SEGPTR
, INT16
, SEGPTR
,
66 SEGPTR
, SEGPTR
, SEGPTR
, SEGPTR
,
68 WORD (CALLBACK
*CallDrvGetCharWidthProc
)( FARPROC16
, SEGPTR
, SEGPTR
, WORD
,
69 WORD
, SEGPTR
, SEGPTR
, SEGPTR
);
70 BOOL16 (CALLBACK
*CallDrvAbortProc
)( FARPROC16
, HDC16
, INT16
);
73 extern const CALLBACKS_TABLE
*Callbacks
;
77 BOOL16
WINAPI (*PeekMessage16
)( LPMSG16 msg
, HWND16 hwnd
,
78 UINT16 first
, UINT16 last
, UINT16 flags
);
79 BOOL
WINAPI (*PeekMessageA
)( LPMSG lpmsg
, HWND hwnd
,
80 UINT min
, UINT max
, UINT wRemoveMsg
);
81 BOOL
WINAPI (*PeekMessageW
)( LPMSG lpmsg
, HWND hwnd
,
82 UINT min
, UINT max
, UINT wRemoveMsg
);
84 BOOL16
WINAPI (*GetMessage16
)( SEGPTR msg
, HWND16 hwnd
,
85 UINT16 first
, UINT16 last
);
86 BOOL
WINAPI (*GetMessageA
)( MSG
* lpmsg
, HWND hwnd
,
88 BOOL
WINAPI (*GetMessageW
)( MSG
* lpmsg
, HWND hwnd
,
91 LRESULT
WINAPI (*SendMessage16
)( HWND16 hwnd
, UINT16 msg
,
92 WPARAM16 wParam
, LPARAM lParam
);
93 LRESULT
WINAPI (*SendMessageA
)( HWND hwnd
, UINT msg
,
94 WPARAM wParam
, LPARAM lParam
);
95 LRESULT
WINAPI (*SendMessageW
)( HWND hwnd
, UINT msg
,
96 WPARAM wParam
, LPARAM lParam
);
98 BOOL16
WINAPI (*PostMessage16
)( HWND16 hwnd
, UINT16 message
,
99 WPARAM16 wParam
, LPARAM lParam
);
100 BOOL
WINAPI (*PostMessageA
)( HWND hwnd
, UINT message
,
101 WPARAM wParam
, LPARAM lParam
);
102 BOOL
WINAPI (*PostMessageW
)( HWND hwnd
, UINT message
,
103 WPARAM wParam
, LPARAM lParam
);
105 BOOL16
WINAPI (*PostAppMessage16
)( HTASK16 hTask
, UINT16 message
,
106 WPARAM16 wParam
, LPARAM lParam
);
107 BOOL
WINAPI (*PostThreadMessageA
)( DWORD idThread
, UINT message
,
108 WPARAM wParam
, LPARAM lParam
);
109 BOOL
WINAPI (*PostThreadMessageW
)( DWORD idThread
, UINT message
,
110 WPARAM wParam
, LPARAM lParam
);
112 BOOL16
WINAPI (*TranslateMessage16
)( const MSG16
*msg
);
113 BOOL
WINAPI (*TranslateMessage
)( const MSG
*msg
);
115 LONG
WINAPI (*DispatchMessage16
)( const MSG16
* msg
);
116 LONG
WINAPI (*DispatchMessageA
)( const MSG
* msg
);
117 LONG
WINAPI (*DispatchMessageW
)( const MSG
* msg
);
119 BOOL16
WINAPI (*RedrawWindow16
)( HWND16 hwnd
, const RECT16
*rectUpdate
,
120 HRGN16 hrgnUpdate
, UINT16 flags
);
122 BOOL
WINAPI (*RedrawWindow
)( HWND hwnd
, const RECT
*rectUpdate
,
123 HRGN hrgnUpdate
, UINT flags
);
125 HQUEUE16
WINAPI (*InitThreadInput16
)( WORD unknown
, WORD flags
);
126 void WINAPI (*UserYield16
)( void );
127 WORD
WINAPI (*DestroyIcon32
)( HGLOBAL16 handle
, UINT16 flags
);
131 extern CALLOUT_TABLE Callout
;
134 #endif /* __WINE_CALLBACK_H */