1996-03-14 19:08:34 +01:00
|
|
|
/*
|
2002-12-04 00:34:52 +01:00
|
|
|
* Message definitions
|
1996-03-14 19:08:34 +01:00
|
|
|
*
|
|
|
|
* Copyright 1993 Alexandre Julliard
|
2002-03-10 00:29:33 +01: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 19:08:34 +01:00
|
|
|
*/
|
|
|
|
|
2002-12-04 00:34:52 +01:00
|
|
|
#ifndef __WINE_MESSAGE_H
|
|
|
|
#define __WINE_MESSAGE_H
|
1996-03-14 19:08:34 +01:00
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
1999-03-14 17:35:05 +01:00
|
|
|
#include "windef.h"
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "winbase.h"
|
2002-12-04 00:34:52 +01:00
|
|
|
#include "wine/windef16.h"
|
1999-01-26 10:30:05 +01:00
|
|
|
|
2001-08-07 21:19:08 +02:00
|
|
|
struct received_message_info;
|
2002-10-29 01:41:42 +01:00
|
|
|
struct hook16_queue_info;
|
2001-08-07 21:19:08 +02:00
|
|
|
|
1999-02-05 11:37:53 +01:00
|
|
|
/* Message queue */
|
1996-03-14 19:08:34 +01:00
|
|
|
typedef struct tagMESSAGEQUEUE
|
|
|
|
{
|
1999-01-26 10:30:05 +01:00
|
|
|
HQUEUE16 self; /* Handle to self (was: reserved) */
|
2000-05-30 21:48:18 +02:00
|
|
|
HANDLE server_queue; /* Handle to server-side queue */
|
2002-10-09 22:36:15 +02:00
|
|
|
DWORD recursion_count; /* Counter to prevent infinite SendMessage recursion */
|
2002-10-29 01:41:42 +01:00
|
|
|
HHOOK hook; /* Current hook */
|
2001-08-07 21:19:08 +02:00
|
|
|
struct received_message_info *receive_info; /* Info about message being currently received */
|
2002-10-29 01:41:42 +01:00
|
|
|
struct hook16_queue_info *hook16_info; /* Opaque pointer for 16-bit hook support */
|
1999-01-26 10:30:05 +01:00
|
|
|
|
|
|
|
DWORD GetMessageTimeVal; /* Value for GetMessageTime */
|
|
|
|
DWORD GetMessagePosVal; /* Value for GetMessagePos */
|
|
|
|
DWORD GetMessageExtraInfoVal; /* Value for GetMessageExtraInfo */
|
2001-05-19 00:51:56 +02:00
|
|
|
|
2002-06-14 02:07:05 +02:00
|
|
|
HCURSOR cursor; /* current cursor */
|
|
|
|
INT cursor_count; /* cursor show count */
|
1996-03-14 19:08:34 +01:00
|
|
|
} MESSAGEQUEUE;
|
|
|
|
|
|
|
|
|
2002-10-09 22:36:15 +02:00
|
|
|
#define MAX_SENDMSG_RECURSION 64
|
1999-01-28 11:54:11 +01:00
|
|
|
|
2002-12-04 00:34:52 +01:00
|
|
|
/* queue.c */
|
2001-07-26 22:12:22 +02:00
|
|
|
extern MESSAGEQUEUE *QUEUE_Current(void);
|
|
|
|
extern void QUEUE_DeleteMsgQueue(void);
|
1996-03-14 19:08:34 +01:00
|
|
|
|
2002-12-04 00:34:52 +01:00
|
|
|
/* message.c */
|
|
|
|
extern BOOL MSG_process_raw_hardware_message( MSG *msg, ULONG_PTR extra_info, HWND hwnd_filter,
|
|
|
|
UINT first, UINT last, BOOL remove );
|
|
|
|
extern BOOL MSG_process_cooked_hardware_message( MSG *msg, ULONG_PTR extra_info, BOOL remove );
|
|
|
|
extern void MSG_JournalPlayBackMsg(void);
|
2003-07-11 23:55:58 +02:00
|
|
|
extern LRESULT MSG_SendInternalMessageTimeout( DWORD dest_pid, DWORD dest_tid,
|
|
|
|
UINT msg, WPARAM wparam, LPARAM lparam,
|
|
|
|
UINT flags, UINT timeout, PDWORD_PTR res_ptr );
|
2002-12-04 00:34:52 +01:00
|
|
|
extern BOOL MSG_peek_message( MSG *msg, HWND hwnd, UINT first, UINT last, int flags );
|
|
|
|
|
|
|
|
/* spy.c */
|
|
|
|
#define SPY_DISPATCHMESSAGE16 0x0100
|
|
|
|
#define SPY_DISPATCHMESSAGE 0x0101
|
|
|
|
#define SPY_SENDMESSAGE16 0x0102
|
|
|
|
#define SPY_SENDMESSAGE 0x0103
|
|
|
|
#define SPY_DEFWNDPROC16 0x0104
|
|
|
|
#define SPY_DEFWNDPROC 0x0105
|
|
|
|
|
|
|
|
#define SPY_RESULT_OK16 0x0000
|
|
|
|
#define SPY_RESULT_OK 0x0001
|
|
|
|
#define SPY_RESULT_INVALIDHWND16 0x0002
|
|
|
|
#define SPY_RESULT_INVALIDHWND 0x0003
|
|
|
|
#define SPY_RESULT_DEFWND16 0x0004
|
|
|
|
#define SPY_RESULT_DEFWND 0x0005
|
|
|
|
|
|
|
|
|
|
|
|
extern const char *SPY_GetMsgName( UINT msg, HWND hWnd );
|
|
|
|
extern const char *SPY_GetVKeyName(WPARAM wParam);
|
|
|
|
extern void SPY_EnterMessage( INT iFlag, HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam );
|
|
|
|
extern void SPY_ExitMessage( INT iFlag, HWND hwnd, UINT msg,
|
|
|
|
LRESULT lReturn, WPARAM wParam, LPARAM lParam );
|
|
|
|
extern int SPY_Init(void);
|
|
|
|
|
|
|
|
#endif /* __WINE_MESSAGE_H */
|