Added entry for DirectPlayEnumerate.
[wine/multimedia.git] / include / callback.h
blobe065ee13816f6a8991fcbf9c1dc40d05d3e59f3d
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 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,
43 LPDWORD );
44 LRESULT (CALLBACK *CallASPIPostProc)( FARPROC16, SEGPTR );
45 /* Following are the graphics driver callbacks */
46 WORD (CALLBACK *CallDrvControlProc)( FARPROC16, SEGPTR, WORD,
47 SEGPTR, SEGPTR );
48 WORD (CALLBACK *CallDrvEnableProc)( FARPROC16, SEGPTR, WORD, SEGPTR,
49 SEGPTR, SEGPTR );
50 WORD (CALLBACK *CallDrvEnumDFontsProc)( FARPROC16, SEGPTR, SEGPTR,
51 FARPROC16, SEGPTR );
52 WORD (CALLBACK *CallDrvEnumObjProc)( FARPROC16, SEGPTR, WORD, FARPROC16,
53 SEGPTR );
54 WORD (CALLBACK *CallDrvOutputProc)( FARPROC16, SEGPTR, WORD, WORD, SEGPTR,
55 SEGPTR, SEGPTR, SEGPTR, SEGPTR );
56 DWORD (CALLBACK *CallDrvRealizeProc)( FARPROC16, SEGPTR, WORD, SEGPTR,
57 SEGPTR, SEGPTR );
58 WORD (CALLBACK *CallDrvStretchBltProc)( FARPROC16, SEGPTR, WORD, WORD,
59 WORD, WORD, SEGPTR, WORD, WORD,
60 WORD, WORD, DWORD, SEGPTR, SEGPTR,
61 SEGPTR );
62 DWORD (CALLBACK *CallDrvExtTextOutProc)( FARPROC16, SEGPTR, WORD, WORD,
63 SEGPTR, SEGPTR, INT16, SEGPTR,
64 SEGPTR, SEGPTR, SEGPTR, SEGPTR,
65 WORD );
66 WORD (CALLBACK *CallDrvGetCharWidthProc)( FARPROC16, SEGPTR, SEGPTR, WORD,
67 WORD, SEGPTR, SEGPTR, SEGPTR );
68 } CALLBACKS_TABLE;
70 extern const CALLBACKS_TABLE *Callbacks;
72 #endif /* __WINE_CALLBACK_H */