Undefined CHAR_MAX and CHAR_MIN (#defined by NetBSD's system headers).
[wine/multimedia.git] / include / callback.h
blob98d89359c61d86ac20a6f368416a9f13c0c571fd
1 /*
2 * Callback functions
4 * Copyright 1995 Alexandre Julliard
5 */
7 #ifndef __WINE_CALLBACK_H
8 #define __WINE_CALLBACK_H
10 #include "wintypes.h"
11 #include "winnt.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))
20 typedef struct
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,
27 WPARAM16, LPARAM );
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,
36 INT16, 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 BOOL16 (CALLBACK *CallPostAppMessageProc)( FARPROC16, HTASK16, UINT16, WPARAM16, LPARAM );
42 DWORD (CALLBACK *CallWOWCallbackProc)( FARPROC16, DWORD );
43 BOOL32 (CALLBACK *CallWOWCallback16Ex)( FARPROC16, DWORD, DWORD, LPVOID,
44 LPDWORD );
45 LRESULT (CALLBACK *CallASPIPostProc)( FARPROC16, SEGPTR );
46 /* Following are the graphics driver callbacks */
47 WORD (CALLBACK *CallDrvControlProc)( FARPROC16, SEGPTR, WORD,
48 SEGPTR, SEGPTR );
49 WORD (CALLBACK *CallDrvEnableProc)( FARPROC16, SEGPTR, WORD, SEGPTR,
50 SEGPTR, SEGPTR );
51 WORD (CALLBACK *CallDrvEnumDFontsProc)( FARPROC16, SEGPTR, SEGPTR,
52 FARPROC16, SEGPTR );
53 WORD (CALLBACK *CallDrvEnumObjProc)( FARPROC16, SEGPTR, WORD, FARPROC16,
54 SEGPTR );
55 WORD (CALLBACK *CallDrvOutputProc)( FARPROC16, SEGPTR, WORD, WORD, SEGPTR,
56 SEGPTR, SEGPTR, SEGPTR, SEGPTR );
57 DWORD (CALLBACK *CallDrvRealizeProc)( FARPROC16, SEGPTR, WORD, SEGPTR,
58 SEGPTR, SEGPTR );
59 WORD (CALLBACK *CallDrvStretchBltProc)( FARPROC16, SEGPTR, WORD, WORD,
60 WORD, WORD, SEGPTR, WORD, WORD,
61 WORD, WORD, DWORD, SEGPTR, SEGPTR,
62 SEGPTR );
63 DWORD (CALLBACK *CallDrvExtTextOutProc)( FARPROC16, SEGPTR, WORD, WORD,
64 SEGPTR, SEGPTR, INT16, SEGPTR,
65 SEGPTR, SEGPTR, SEGPTR, SEGPTR,
66 WORD );
67 WORD (CALLBACK *CallDrvGetCharWidthProc)( FARPROC16, SEGPTR, SEGPTR, WORD,
68 WORD, SEGPTR, SEGPTR, SEGPTR );
69 BOOL16 (CALLBACK *CallDrvAbortProc)( FARPROC16, HDC16, INT16 );
70 } CALLBACKS_TABLE;
72 extern const CALLBACKS_TABLE *Callbacks;
74 #endif /* __WINE_CALLBACK_H */