4 * Copyright 1993 Alexandre Julliard
7 #ifndef __WINE_MESSAGE_H
8 #define __WINE_MESSAGE_H
13 extern DWORD MSG_WineStartTicks; /* Ticks at Wine startup */
16 extern BOOL MSG_InternalGetMessage( MSG *msg, HWND hwnd,
17 HWND hwndOwner, WPARAM code,
18 WORD flags, BOOL sendIdle );
21 extern void TIMER_RemoveWindowTimers( HWND hwnd );
22 extern void TIMER_RemoveQueueTimers( HQUEUE16 hqueue );
23 extern void TIMER_SwitchQueue( HQUEUE16 hOldQueue, HQUEUE16 hNewQueue );
24 extern LONG TIMER_GetNextExpiration(void);
25 extern void TIMER_ExpireTimers(void);
26 extern BOOL TIMER_GetTimerMsg( MSG *msg, HWND hwnd,
27 HQUEUE16 hQueue, BOOL remove );
29 #define EVENT_IO_READ 0
30 #define EVENT_IO_WRITE 1
31 #define EVENT_IO_EXCEPT 2
35 typedef struct _EVENT_DRIVER {
37 void (*pAddIO)(int, unsigned);
38 void (*pDeleteIO)(int, unsigned);
39 BOOL (*pWaitNetEvent)(BOOL, BOOL);
40 void (*pSynchronize)(void);
41 BOOL (*pCheckFocus)(void);
42 BOOL (*pQueryPointer)(DWORD *, DWORD *, DWORD *);
43 void (*pDummyMotionNotify)(void);
44 BOOL (*pPending)(void);
45 BOOL16 (*pIsUserIdle)(void);
46 void (*pWakeUp)(void);
49 extern void EVENT_AddIO( int fd, unsigned flag );
50 extern void EVENT_DeleteIO( int fd, unsigned flag );
51 extern BOOL EVENT_Init( void );
52 extern BOOL EVENT_WaitNetEvent( BOOL sleep, BOOL peek );
53 extern void EVENT_Synchronize(void);
54 extern BOOL EVENT_CheckFocus( void );
55 extern BOOL EVENT_QueryPointer(DWORD *posX, DWORD *posY, DWORD *state);
56 extern void EVENT_DummyMotionNotify(void);
57 extern BOOL EVENT_Pending(void);
58 extern void EVENT_WakeUp(void);
62 extern HWND EVENT_Capture( HWND, INT16 );
63 extern BOOL EVENT_QueryPointer( DWORD *posX, DWORD *posY, DWORD *state );
65 extern void joySendMessages(void);
67 #endif /* __WINE_MESSAGE_H */