Modify winedos interrupt handlers so that they work with PM
[wine] / include / queue.h
1 /*
2  * Message queues definitions
3  *
4  * Copyright 1993 Alexandre Julliard
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #ifndef __WINE_QUEUE_H
22 #define __WINE_QUEUE_H
23
24 #include "windef.h"
25 #include "winbase.h"
26 #include "wingdi.h"
27 #include "winuser.h"
28 #include "thread.h"
29
30 struct received_message_info;
31 struct hook16_queue_info;
32
33 /* Message queue */
34 typedef struct tagMESSAGEQUEUE
35 {
36   HQUEUE16  self;                   /* Handle to self (was: reserved) */
37   HANDLE    server_queue;           /* Handle to server-side queue */
38   DWORD     recursion_count;        /* Counter to prevent infinite SendMessage recursion */
39   HHOOK     hook;                   /* Current hook */
40   struct received_message_info *receive_info; /* Info about message being currently received */
41   struct hook16_queue_info *hook16_info;      /* Opaque pointer for 16-bit hook support */
42
43   DWORD     GetMessageTimeVal;      /* Value for GetMessageTime */
44   DWORD     GetMessagePosVal;       /* Value for GetMessagePos */
45   DWORD     GetMessageExtraInfoVal; /* Value for GetMessageExtraInfo */
46
47   HCURSOR   cursor;                 /* current cursor */
48   INT       cursor_count;           /* cursor show count */
49 } MESSAGEQUEUE;
50
51
52 #define MAX_SENDMSG_RECURSION  64
53
54 /* Message queue management methods */
55 extern MESSAGEQUEUE *QUEUE_Current(void);
56 extern void QUEUE_DeleteMsgQueue(void);
57
58 #endif  /* __WINE_QUEUE_H */