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 BOOL
TIMER_Init( void );
22 extern void TIMER_RemoveWindowTimers( HWND hwnd
);
23 extern void TIMER_RemoveQueueTimers( HQUEUE16 hqueue
);
24 extern BOOL
TIMER_GetTimerMsg( MSG
*msg
, HWND hwnd
,
25 HQUEUE16 hQueue
, BOOL remove
);
27 #define EVENT_IO_READ 0
28 #define EVENT_IO_WRITE 1
29 #define EVENT_IO_EXCEPT 2
32 typedef struct tagEVENT_DRIVER
{
34 void (*pAddIO
)(int, unsigned);
35 void (*pDeleteIO
)(int, unsigned);
36 BOOL (*pWaitNetEvent
)(BOOL
, BOOL
);
37 void (*pSynchronize
)(void);
38 BOOL (*pCheckFocus
)(void);
39 BOOL (*pQueryPointer
)(DWORD
*, DWORD
*, DWORD
*);
40 void (*pDummyMotionNotify
)(void);
41 BOOL (*pPending
)(void);
42 BOOL16 (*pIsUserIdle
)(void);
43 void (*pWakeUp
)(void);
46 extern EVENT_DRIVER
*EVENT_Driver
;
48 extern void EVENT_AddIO( int fd
, unsigned flag
);
49 extern void EVENT_DeleteIO( int fd
, unsigned flag
);
50 extern BOOL
EVENT_Init( void );
51 extern BOOL
EVENT_WaitNetEvent( BOOL sleep
, BOOL peek
);
52 extern void EVENT_Synchronize(void);
53 extern BOOL
EVENT_CheckFocus( void );
54 extern BOOL
EVENT_QueryPointer(DWORD
*posX
, DWORD
*posY
, DWORD
*state
);
55 extern void EVENT_DummyMotionNotify(void);
56 extern BOOL
EVENT_Pending(void);
57 extern void EVENT_WakeUp(void);
61 extern HWND
EVENT_Capture( HWND
, INT16
);
62 extern BOOL
EVENT_QueryPointer( DWORD
*posX
, DWORD
*posY
, DWORD
*state
);
64 extern void joySendMessages(void);
66 #endif /* __WINE_MESSAGE_H */