Release 990226.
[wine/gsoc-2012-control.git] / include / message.h
blob77c9dad13fdfc9ef46f84df89982b7766e27f138
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 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
33 /* event.c */
35 typedef struct _EVENT_DRIVER {
36 BOOL (*pInit)(void);
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);
47 } EVENT_DRIVER;
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);
60 /* input.c */
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 */