Fixed/commented out duplicate entry point names.
[wine/multimedia.git] / include / callback.h
blob44a49a0801475758b0a2e45f6227184e543a3c13
1 /*
2 * Callback functions
4 * Copyright 1995 Alexandre Julliard
5 */
7 #ifndef __WINE_CALLBACK_H
8 #define __WINE_CALLBACK_H
10 #include "windef.h"
11 #include "winnt.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))
21 typedef void (*RELAY)();
22 extern FARPROC THUNK_Alloc( FARPROC16 func, RELAY relay );
23 extern void THUNK_Free( FARPROC thunk );
25 typedef struct
27 LONG (CALLBACK *CallRegisterShortProc)( CONTEXT86 *, INT );
28 LONG (CALLBACK *CallRegisterLongProc)( CONTEXT86 *, INT );
29 LRESULT (CALLBACK *CallDriverProc)( DRIVERPROC16, DWORD, HDRVR16,
30 UINT16, LPARAM, LPARAM );
31 LRESULT (CALLBACK *CallDriverCallback)( FARPROC16, HANDLE16, UINT16,
32 DWORD, LPARAM, LPARAM );
33 LRESULT (CALLBACK *CallTimeFuncProc)( FARPROC16, WORD, UINT16,
34 DWORD, LPARAM, LPARAM );
35 INT16 (CALLBACK *CallWindowsExitProc)( FARPROC16, INT16 );
36 INT16 (CALLBACK *CallWordBreakProc)( EDITWORDBREAKPROC16, SEGPTR, INT16,
37 INT16, INT16 );
38 VOID (CALLBACK *CallBootAppProc)( FARPROC16, HANDLE16, HFILE16 );
39 WORD (CALLBACK *CallLoadAppSegProc)( FARPROC16, HANDLE16, HFILE16, WORD );
40 WORD (CALLBACK *CallLocalNotifyFunc)( FARPROC16, WORD, HLOCAL16, WORD );
41 HGLOBAL16 (CALLBACK *CallResourceHandlerProc)( FARPROC16, HGLOBAL16, HMODULE16, HRSRC16 );
42 DWORD (CALLBACK *CallUTProc)( FARPROC16, DWORD, DWORD );
43 LRESULT (CALLBACK *CallASPIPostProc)( FARPROC16, SEGPTR );
44 } CALLBACKS_TABLE;
46 extern const CALLBACKS_TABLE *Callbacks;
48 typedef struct
50 BOOL16 WINAPI (*PeekMessage16)( LPMSG16 msg, HWND16 hwnd,
51 UINT16 first, UINT16 last, UINT16 flags );
52 BOOL WINAPI (*PeekMessageA)( LPMSG lpmsg, HWND hwnd,
53 UINT min, UINT max, UINT wRemoveMsg );
54 BOOL WINAPI (*PeekMessageW)( LPMSG lpmsg, HWND hwnd,
55 UINT min, UINT max, UINT wRemoveMsg );
57 BOOL16 WINAPI (*GetMessage16)( SEGPTR msg, HWND16 hwnd,
58 UINT16 first, UINT16 last );
59 BOOL WINAPI (*GetMessageA)( MSG* lpmsg, HWND hwnd,
60 UINT min, UINT max );
61 BOOL WINAPI (*GetMessageW)( MSG* lpmsg, HWND hwnd,
62 UINT min, UINT max );
64 LRESULT WINAPI (*SendMessage16)( HWND16 hwnd, UINT16 msg,
65 WPARAM16 wParam, LPARAM lParam );
66 LRESULT WINAPI (*SendMessageA)( HWND hwnd, UINT msg,
67 WPARAM wParam, LPARAM lParam );
68 LRESULT WINAPI (*SendMessageW)( HWND hwnd, UINT msg,
69 WPARAM wParam, LPARAM lParam );
71 BOOL16 WINAPI (*PostMessage16)( HWND16 hwnd, UINT16 message,
72 WPARAM16 wParam, LPARAM lParam );
73 BOOL WINAPI (*PostMessageA)( HWND hwnd, UINT message,
74 WPARAM wParam, LPARAM lParam );
75 BOOL WINAPI (*PostMessageW)( HWND hwnd, UINT message,
76 WPARAM wParam, LPARAM lParam );
78 BOOL16 WINAPI (*PostAppMessage16)( HTASK16 hTask, UINT16 message,
79 WPARAM16 wParam, LPARAM lParam );
80 BOOL WINAPI (*PostThreadMessageA)( DWORD idThread , UINT message,
81 WPARAM wParam, LPARAM lParam );
82 BOOL WINAPI (*PostThreadMessageW)( DWORD idThread , UINT message,
83 WPARAM wParam, LPARAM lParam );
85 BOOL16 WINAPI (*TranslateMessage16)( const MSG16 *msg );
86 BOOL WINAPI (*TranslateMessage)( const MSG *msg );
88 LONG WINAPI (*DispatchMessage16)( const MSG16* msg );
89 LONG WINAPI (*DispatchMessageA)( const MSG* msg );
90 LONG WINAPI (*DispatchMessageW)( const MSG* msg );
92 BOOL16 WINAPI (*RedrawWindow16)( HWND16 hwnd, const RECT16 *rectUpdate,
93 HRGN16 hrgnUpdate, UINT16 flags );
95 BOOL WINAPI (*RedrawWindow)( HWND hwnd, const RECT *rectUpdate,
96 HRGN hrgnUpdate, UINT flags );
98 WORD WINAPI (*UserSignalProc)( UINT uCode, DWORD dwThreadOrProcessID,
99 DWORD dwFlags, HMODULE16 hModule );
100 void WINAPI (*FinalUserInit16)( void );
102 INT16 WINAPI (*InitApp16)( HINSTANCE16 hInst );
103 HQUEUE16 WINAPI (*InitThreadInput16)( WORD unknown, WORD flags );
104 void WINAPI (*UserYield16)( void );
105 WORD WINAPI (*DestroyIcon32)( HGLOBAL16 handle, UINT16 flags );
107 } CALLOUT_TABLE;
109 extern CALLOUT_TABLE Callout;
112 #endif /* __WINE_CALLBACK_H */