4 * Copyright 1993 Alexandre Julliard
7 #ifndef __WINE_MESSAGE_H
8 #define __WINE_MESSAGE_H
14 extern DWORD MSG_WineStartTicks
; /* Ticks at Wine startup */
17 extern BOOL32
MSG_InternalGetMessage( MSG16
*msg
, HWND32 hwnd
,
18 HWND32 hwndOwner
, WPARAM32 code
,
19 WORD flags
, BOOL32 sendIdle
);
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
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);
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);
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 */