Add an empty hook function for WSASetBlockingHook to return.
[wine/wine64.git] / dlls / user / message.h
blobdc776aeaa463613ce2ec5bb74349a6e725aa1883
1 /*
2 * Message definitions
4 * Copyright 1993 Alexandre Julliard
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.
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.
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
21 #ifndef __WINE_MESSAGE_H
22 #define __WINE_MESSAGE_H
24 #include "windef.h"
25 #include "wine/windef16.h"
27 struct received_message_info;
28 struct hook16_queue_info;
30 /* Message queue */
31 typedef struct tagMESSAGEQUEUE
33 HQUEUE16 self; /* Handle to self (was: reserved) */
34 HANDLE server_queue; /* Handle to server-side queue */
35 DWORD recursion_count; /* Counter to prevent infinite SendMessage recursion */
36 HHOOK hook; /* Current hook */
37 struct received_message_info *receive_info; /* Info about message being currently received */
38 struct hook16_queue_info *hook16_info; /* Opaque pointer for 16-bit hook support */
40 DWORD GetMessageTimeVal; /* Value for GetMessageTime */
41 DWORD GetMessagePosVal; /* Value for GetMessagePos */
42 DWORD GetMessageExtraInfoVal; /* Value for GetMessageExtraInfo */
44 HCURSOR cursor; /* current cursor */
45 INT cursor_count; /* cursor show count */
46 } MESSAGEQUEUE;
49 #define MAX_SENDMSG_RECURSION 64
51 /* queue.c */
52 extern MESSAGEQUEUE *QUEUE_Current(void);
53 extern void QUEUE_DeleteMsgQueue(void);
55 /* message.c */
56 extern BOOL MSG_process_raw_hardware_message( MSG *msg, ULONG_PTR extra_info, HWND hwnd_filter,
57 UINT first, UINT last, BOOL remove );
58 extern BOOL MSG_process_cooked_hardware_message( MSG *msg, ULONG_PTR extra_info, BOOL remove );
59 extern void MSG_JournalPlayBackMsg(void);
60 extern LRESULT MSG_SendInternalMessageTimeout( DWORD dest_pid, DWORD dest_tid,
61 UINT msg, WPARAM wparam, LPARAM lparam,
62 UINT flags, UINT timeout, PDWORD_PTR res_ptr );
63 extern BOOL MSG_peek_message( MSG *msg, HWND hwnd, UINT first, UINT last, int flags );
65 /* spy.c */
66 #define SPY_DISPATCHMESSAGE16 0x0100
67 #define SPY_DISPATCHMESSAGE 0x0101
68 #define SPY_SENDMESSAGE16 0x0102
69 #define SPY_SENDMESSAGE 0x0103
70 #define SPY_DEFWNDPROC16 0x0104
71 #define SPY_DEFWNDPROC 0x0105
73 #define SPY_RESULT_OK16 0x0000
74 #define SPY_RESULT_OK 0x0001
75 #define SPY_RESULT_INVALIDHWND16 0x0002
76 #define SPY_RESULT_INVALIDHWND 0x0003
77 #define SPY_RESULT_DEFWND16 0x0004
78 #define SPY_RESULT_DEFWND 0x0005
81 extern const char *SPY_GetMsgName( UINT msg, HWND hWnd );
82 extern const char *SPY_GetVKeyName(WPARAM wParam);
83 extern void SPY_EnterMessage( INT iFlag, HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam );
84 extern void SPY_ExitMessage( INT iFlag, HWND hwnd, UINT msg,
85 LRESULT lReturn, WPARAM wParam, LPARAM lParam );
86 extern int SPY_Init(void);
88 #endif /* __WINE_MESSAGE_H */