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 VOID (CALLBACK *CallFrom16WndProc)(void);
26 LRESULT (CALLBACK *CallWndProc)( WNDPROC16, HWND16, UINT16,
28 LRESULT (CALLBACK *CallDriverProc)( DRIVERPROC16, DWORD, HDRVR16,
29 UINT16, LPARAM, LPARAM );
30 LRESULT (CALLBACK *CallDriverCallback)( FARPROC16, HANDLE16, UINT16,
31 DWORD, LPARAM, LPARAM );
32 LRESULT (CALLBACK *CallTimeFuncProc)( FARPROC16, WORD, UINT16,
33 DWORD, LPARAM, LPARAM );
34 INT16 (CALLBACK *CallWindowsExitProc)( FARPROC16, INT16 );
35 INT16 (CALLBACK *CallWordBreakProc)( EDITWORDBREAKPROC16, SEGPTR, INT16,
37 VOID (CALLBACK *CallBootAppProc)( FARPROC16, HANDLE16, HFILE16 );
38 WORD (CALLBACK *CallLoadAppSegProc)( FARPROC16, HANDLE16, HFILE16, WORD );
39 WORD (CALLBACK *CallLocalNotifyFunc)( FARPROC16, WORD, HLOCAL16, WORD );
40 HGLOBAL16 (CALLBACK *CallResourceHandlerProc)( FARPROC16, HGLOBAL16, HMODULE16, HRSRC16 );
41 DWORD (CALLBACK *CallWOWCallbackProc)( FARPROC16, DWORD );
42 BOOL (CALLBACK *CallWOWCallback16Ex)( FARPROC16, DWORD, DWORD, LPVOID,
44 DWORD (CALLBACK *CallUTProc)( FARPROC16, DWORD, DWORD );
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 WORD WINAPI (*UserSignalProc)( UINT uCode, DWORD dwThreadOrProcessID,
125 DWORD dwFlags, HMODULE16 hModule );
127 INT16 WINAPI (*InitApp16)( HINSTANCE16 hInst );
128 HQUEUE16 WINAPI (*InitThreadInput16)( WORD unknown, WORD flags );
129 void WINAPI (*UserYield16)( void );
130 WORD WINAPI (*DestroyIcon32)( HGLOBAL16 handle, UINT16 flags );
134 extern CALLOUT_TABLE Callout;
137 #endif /* __WINE_CALLBACK_H */