4 * Copyright 1995 Alexandre Julliard
7 #ifndef __WINE_CALLBACK_H
8 #define __WINE_CALLBACK_H
13 extern int (*IF1632_CallLargeStack
)( int (*func
)(void), void *arg
);
15 #define CALL_LARGE_STACK(func,arg) \
16 (IF1632_CallLargeStack ? \
17 IF1632_CallLargeStack( (int(*)())(func), (void *)(arg) ) : \
18 ((int(*)())(func))((void *)arg))
22 LONG (CALLBACK
*CallRegisterShortProc
)( CONTEXT
*, INT32
);
23 LONG (CALLBACK
*CallRegisterLongProc
)( CONTEXT
*, INT32
);
24 VOID (CALLBACK
*CallTaskRescheduleProc
)(void);
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 VOID (CALLBACK
*CallSystemTimerProc
)( FARPROC16
);
40 HGLOBAL16 (CALLBACK
*CallResourceHandlerProc
)( FARPROC16
, HGLOBAL16
, HMODULE16
, HRSRC16
);
41 DWORD (CALLBACK
*CallWOWCallbackProc
)( FARPROC16
, DWORD
);
42 BOOL32 (CALLBACK
*CallWOWCallback16Ex
)( FARPROC16
, DWORD
, DWORD
, LPVOID
,
44 LRESULT (CALLBACK
*CallASPIPostProc
)( FARPROC16
, SEGPTR
);
45 /* Following are the graphics driver callbacks */
46 WORD (CALLBACK
*CallDrvControlProc
)( FARPROC16
, SEGPTR
, WORD
,
48 WORD (CALLBACK
*CallDrvEnableProc
)( FARPROC16
, SEGPTR
, WORD
, SEGPTR
,
50 WORD (CALLBACK
*CallDrvEnumDFontsProc
)( FARPROC16
, SEGPTR
, SEGPTR
,
52 WORD (CALLBACK
*CallDrvEnumObjProc
)( FARPROC16
, SEGPTR
, WORD
, FARPROC16
,
54 WORD (CALLBACK
*CallDrvOutputProc
)( FARPROC16
, SEGPTR
, WORD
, WORD
, SEGPTR
,
55 SEGPTR
, SEGPTR
, SEGPTR
, SEGPTR
);
56 DWORD (CALLBACK
*CallDrvRealizeProc
)( FARPROC16
, SEGPTR
, WORD
, SEGPTR
,
58 WORD (CALLBACK
*CallDrvStretchBltProc
)( FARPROC16
, SEGPTR
, WORD
, WORD
,
59 WORD
, WORD
, SEGPTR
, WORD
, WORD
,
60 WORD
, WORD
, DWORD
, SEGPTR
, SEGPTR
,
62 DWORD (CALLBACK
*CallDrvExtTextOutProc
)( FARPROC16
, SEGPTR
, WORD
, WORD
,
63 SEGPTR
, SEGPTR
, INT16
, SEGPTR
,
64 SEGPTR
, SEGPTR
, SEGPTR
, SEGPTR
,
66 WORD (CALLBACK
*CallDrvGetCharWidthProc
)( FARPROC16
, SEGPTR
, SEGPTR
, WORD
,
67 WORD
, SEGPTR
, SEGPTR
, SEGPTR
);
70 extern const CALLBACKS_TABLE
*Callbacks
;
72 #endif /* __WINE_CALLBACK_H */