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 LRESULT (CALLBACK
*CallASPIPostProc
)( FARPROC16
, SEGPTR
);
46 /* Following are the graphics driver callbacks */
47 WORD (CALLBACK
*CallDrvControlProc
)( FARPROC16
, SEGPTR
, WORD
,
49 WORD (CALLBACK
*CallDrvEnableProc
)( FARPROC16
, SEGPTR
, WORD
, SEGPTR
,
51 WORD (CALLBACK
*CallDrvEnumDFontsProc
)( FARPROC16
, SEGPTR
, SEGPTR
,
53 WORD (CALLBACK
*CallDrvEnumObjProc
)( FARPROC16
, SEGPTR
, WORD
, FARPROC16
,
55 WORD (CALLBACK
*CallDrvOutputProc
)( FARPROC16
, SEGPTR
, WORD
, WORD
, SEGPTR
,
56 SEGPTR
, SEGPTR
, SEGPTR
, SEGPTR
);
57 DWORD (CALLBACK
*CallDrvRealizeProc
)( FARPROC16
, SEGPTR
, WORD
, SEGPTR
,
59 WORD (CALLBACK
*CallDrvStretchBltProc
)( FARPROC16
, SEGPTR
, WORD
, WORD
,
60 WORD
, WORD
, SEGPTR
, WORD
, WORD
,
61 WORD
, WORD
, DWORD
, SEGPTR
, SEGPTR
,
63 DWORD (CALLBACK
*CallDrvExtTextOutProc
)( FARPROC16
, SEGPTR
, WORD
, WORD
,
64 SEGPTR
, SEGPTR
, INT16
, SEGPTR
,
65 SEGPTR
, SEGPTR
, SEGPTR
, SEGPTR
,
67 WORD (CALLBACK
*CallDrvGetCharWidthProc
)( FARPROC16
, SEGPTR
, SEGPTR
, WORD
,
68 WORD
, SEGPTR
, SEGPTR
, SEGPTR
);
69 BOOL16 (CALLBACK
*CallDrvAbortProc
)( FARPROC16
, HDC16
, INT16
);
72 extern const CALLBACKS_TABLE
*Callbacks
;
76 BOOL16
WINAPI (*PeekMessage16
)( LPMSG16 msg
, HWND16 hwnd
,
77 UINT16 first
, UINT16 last
, UINT16 flags
);
78 BOOL
WINAPI (*PeekMessageA
)( LPMSG lpmsg
, HWND hwnd
,
79 UINT min
, UINT max
, UINT wRemoveMsg
);
80 BOOL
WINAPI (*PeekMessageW
)( LPMSG lpmsg
, HWND hwnd
,
81 UINT min
, UINT max
, UINT wRemoveMsg
);
83 BOOL16
WINAPI (*GetMessage16
)( SEGPTR msg
, HWND16 hwnd
,
84 UINT16 first
, UINT16 last
);
85 BOOL
WINAPI (*GetMessageA
)( MSG
* lpmsg
, HWND hwnd
,
87 BOOL
WINAPI (*GetMessageW
)( MSG
* lpmsg
, HWND hwnd
,
90 LRESULT
WINAPI (*SendMessage16
)( HWND16 hwnd
, UINT16 msg
,
91 WPARAM16 wParam
, LPARAM lParam
);
92 LRESULT
WINAPI (*SendMessageA
)( HWND hwnd
, UINT msg
,
93 WPARAM wParam
, LPARAM lParam
);
94 LRESULT
WINAPI (*SendMessageW
)( HWND hwnd
, UINT msg
,
95 WPARAM wParam
, LPARAM lParam
);
97 BOOL16
WINAPI (*PostMessage16
)( HWND16 hwnd
, UINT16 message
,
98 WPARAM16 wParam
, LPARAM lParam
);
99 BOOL
WINAPI (*PostMessageA
)( HWND hwnd
, UINT message
,
100 WPARAM wParam
, LPARAM lParam
);
101 BOOL
WINAPI (*PostMessageW
)( HWND hwnd
, UINT message
,
102 WPARAM wParam
, LPARAM lParam
);
104 BOOL16
WINAPI (*PostAppMessage16
)( HTASK16 hTask
, UINT16 message
,
105 WPARAM16 wParam
, LPARAM lParam
);
106 BOOL
WINAPI (*PostThreadMessageA
)( DWORD idThread
, UINT message
,
107 WPARAM wParam
, LPARAM lParam
);
108 BOOL
WINAPI (*PostThreadMessageW
)( DWORD idThread
, UINT message
,
109 WPARAM wParam
, LPARAM lParam
);
111 BOOL16
WINAPI (*TranslateMessage16
)( const MSG16
*msg
);
112 BOOL
WINAPI (*TranslateMessage
)( const MSG
*msg
);
114 LONG
WINAPI (*DispatchMessage16
)( const MSG16
* msg
);
115 LONG
WINAPI (*DispatchMessageA
)( const MSG
* msg
);
116 LONG
WINAPI (*DispatchMessageW
)( const MSG
* msg
);
118 BOOL16
WINAPI (*RedrawWindow16
)( HWND16 hwnd
, const RECT16
*rectUpdate
,
119 HRGN16 hrgnUpdate
, UINT16 flags
);
121 BOOL
WINAPI (*RedrawWindow
)( HWND hwnd
, const RECT
*rectUpdate
,
122 HRGN hrgnUpdate
, UINT flags
);
124 HQUEUE16
WINAPI (*InitThreadInput16
)( WORD unknown
, WORD flags
);
125 void WINAPI (*UserYield16
)( void );
129 extern CALLOUT_TABLE Callout
;
132 #endif /* __WINE_CALLBACK_H */