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 BOOL16 (CALLBACK
*CallPostAppMessageProc
)( FARPROC16
, HTASK16
, UINT16
, WPARAM16
, LPARAM
);
42 DWORD (CALLBACK
*CallWOWCallbackProc
)( FARPROC16
, DWORD
);
43 BOOL32 (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
;
74 #endif /* __WINE_CALLBACK_H */