1996-03-14 18:08:34 +00:00
|
|
|
/*
|
|
|
|
* Message queues definitions
|
|
|
|
*
|
|
|
|
* Copyright 1993 Alexandre Julliard
|
2002-03-09 23:29:33 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
1996-03-14 18:08:34 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_QUEUE_H
|
|
|
|
#define __WINE_QUEUE_H
|
|
|
|
|
1999-03-14 16:35:05 +00:00
|
|
|
#include "windef.h"
|
2000-03-08 18:26:56 +00:00
|
|
|
#include "winbase.h"
|
2000-02-10 19:03:02 +00:00
|
|
|
#include "wingdi.h"
|
1999-02-21 18:23:26 +00:00
|
|
|
#include "winuser.h"
|
1999-01-26 09:30:05 +00:00
|
|
|
#include "thread.h"
|
|
|
|
|
2001-08-07 19:19:08 +00:00
|
|
|
struct received_message_info;
|
2002-10-29 00:41:42 +00:00
|
|
|
struct hook16_queue_info;
|
2001-08-07 19:19:08 +00:00
|
|
|
|
1999-02-05 10:37:53 +00:00
|
|
|
/* Message queue */
|
1996-03-14 18:08:34 +00:00
|
|
|
typedef struct tagMESSAGEQUEUE
|
|
|
|
{
|
1999-01-26 09:30:05 +00:00
|
|
|
HQUEUE16 self; /* Handle to self (was: reserved) */
|
2000-05-30 19:48:18 +00:00
|
|
|
HANDLE server_queue; /* Handle to server-side queue */
|
2002-10-09 20:36:15 +00:00
|
|
|
DWORD recursion_count; /* Counter to prevent infinite SendMessage recursion */
|
2002-10-29 00:41:42 +00:00
|
|
|
HHOOK hook; /* Current hook */
|
2001-08-07 19:19:08 +00:00
|
|
|
struct received_message_info *receive_info; /* Info about message being currently received */
|
2002-10-29 00:41:42 +00:00
|
|
|
struct hook16_queue_info *hook16_info; /* Opaque pointer for 16-bit hook support */
|
1999-01-26 09:30:05 +00:00
|
|
|
|
|
|
|
DWORD GetMessageTimeVal; /* Value for GetMessageTime */
|
|
|
|
DWORD GetMessagePosVal; /* Value for GetMessagePos */
|
|
|
|
DWORD GetMessageExtraInfoVal; /* Value for GetMessageExtraInfo */
|
2001-05-18 22:51:56 +00:00
|
|
|
|
2002-06-14 00:07:05 +00:00
|
|
|
HCURSOR cursor; /* current cursor */
|
|
|
|
INT cursor_count; /* cursor show count */
|
1996-03-14 18:08:34 +00:00
|
|
|
} MESSAGEQUEUE;
|
|
|
|
|
|
|
|
|
2002-10-09 20:36:15 +00:00
|
|
|
#define MAX_SENDMSG_RECURSION 64
|
1999-01-28 10:54:11 +00:00
|
|
|
|
1999-02-05 10:37:53 +00:00
|
|
|
/* Message queue management methods */
|
2001-07-26 20:12:22 +00:00
|
|
|
extern MESSAGEQUEUE *QUEUE_Current(void);
|
|
|
|
extern void QUEUE_DeleteMsgQueue(void);
|
1996-03-14 18:08:34 +00:00
|
|
|
|
|
|
|
#endif /* __WINE_QUEUE_H */
|