Use Callout table instead of direct GetProcAddress.
[wine/multimedia.git] / include / message.h
blob02519973b908ce0280cefd6543f232a15438edb3
1 /*
2 * Message definitions
4 * Copyright 1993 Alexandre Julliard
5 */
7 #ifndef __WINE_MESSAGE_H
8 #define __WINE_MESSAGE_H
10 #include "win.h"
11 #include "queue.h"
12 #include "wintypes.h"
14 extern DWORD MSG_WineStartTicks; /* Ticks at Wine startup */
16 /* message.c */
17 extern BOOL32 MSG_InternalGetMessage( MSG16 *msg, HWND32 hwnd,
18 HWND32 hwndOwner, WPARAM32 code,
19 WORD flags, BOOL32 sendIdle );
21 /* timer.c */
22 extern void TIMER_RemoveWindowTimers( HWND32 hwnd );
23 extern void TIMER_RemoveQueueTimers( HQUEUE16 hqueue );
24 extern void TIMER_SwitchQueue( HQUEUE16 hOldQueue, HQUEUE16 hNewQueue );
25 extern LONG TIMER_GetNextExpiration(void);
26 extern void TIMER_ExpireTimers(void);
27 extern BOOL32 TIMER_GetTimerMsg( MSG16 *msg, HWND32 hwnd,
28 HQUEUE16 hQueue, BOOL32 remove );
30 #define EVENT_IO_READ 0
31 #define EVENT_IO_WRITE 1
32 #define EVENT_IO_EXCEPT 2
34 /* event.c */
36 typedef struct _EVENT_DRIVER {
37 BOOL32 (*pInit)(void);
38 void (*pAddIO)(int, unsigned);
39 void (*pDeleteIO)(int, unsigned);
40 BOOL32 (*pWaitNetEvent)(BOOL32, BOOL32);
41 void (*pSynchronize)(void);
42 BOOL32 (*pCheckFocus)(void);
43 BOOL32 (*pQueryPointer)(DWORD *, DWORD *, DWORD *);
44 void (*pDummyMotionNotify)(void);
45 BOOL32 (*pPending)(void);
46 BOOL16 (*pIsUserIdle)(void);
47 } EVENT_DRIVER;
49 extern void EVENT_AddIO( int fd, unsigned flag );
50 extern void EVENT_DeleteIO( int fd, unsigned flag );
51 extern BOOL32 EVENT_Init( void );
52 extern BOOL32 EVENT_WaitNetEvent( BOOL32 sleep, BOOL32 peek );
53 extern void EVENT_Synchronize(void);
54 extern BOOL32 EVENT_CheckFocus( void );
55 extern BOOL32 EVENT_QueryPointer(DWORD *posX, DWORD *posY, DWORD *state);
56 extern void EVENT_DummyMotionNotify(void);
57 extern BOOL32 EVENT_Pending(void);
59 /* input.c */
61 extern HWND32 EVENT_Capture( HWND32, INT16 );
62 extern INT16 EVENT_GetCaptureInfo(void);
63 extern BOOL32 EVENT_QueryPointer( DWORD *posX, DWORD *posY, DWORD *state );
65 extern void joySendMessages(void);
67 #endif /* __WINE_MESSAGE_H */