Add a few more 32->16 Escape conversions.
[wine.git] / include / message.h
blob6fa9cb8de84a6a5ebb3dd6568534f7281dc3d010
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"
13 extern DWORD MSG_WineStartTicks; /* Ticks at Wine startup */
15 /* message.c */
16 extern BOOL MSG_InternalGetMessage( MSG *msg, HWND hwnd,
17 HWND hwndOwner, WPARAM code,
18 WORD flags, BOOL sendIdle );
20 /* timer.c */
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
31 /* event.c */
32 typedef struct tagEVENT_DRIVER {
33 BOOL (*pInit)(void);
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);
44 } EVENT_DRIVER;
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);
59 /* input.c */
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 */