Added macros for AVIFileClose and AVIStreamClose.
[wine/wine64.git] / include / queue.h
blobb1eb20c043309d178d9cabaa0814732d60289c0b
1 /*
2 * Message queues 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_QUEUE_H
22 #define __WINE_QUEUE_H
24 #include "windef.h"
25 #include "winbase.h"
26 #include "wingdi.h"
27 #include "winuser.h"
28 #include "thread.h"
30 #define WH_NB_HOOKS (WH_MAXHOOK-WH_MINHOOK+1)
32 struct received_message_info;
34 /* Message queue */
35 typedef struct tagMESSAGEQUEUE
37 HQUEUE16 self; /* Handle to self (was: reserved) */
38 TEB* teb; /* Thread owning queue */
39 HANDLE server_queue; /* Handle to server-side queue */
40 DWORD recursion_count; /* Counter to prevent infinite SendMessage recursion */
41 struct received_message_info *receive_info; /* Info about message being currently received */
43 DWORD magic; /* magic number should be QUEUE_MAGIC */
44 DWORD lockCount; /* reference counter */
46 DWORD GetMessageTimeVal; /* Value for GetMessageTime */
47 DWORD GetMessagePosVal; /* Value for GetMessagePos */
48 DWORD GetMessageExtraInfoVal; /* Value for GetMessageExtraInfo */
50 HCURSOR cursor; /* current cursor */
51 INT cursor_count; /* cursor show count */
53 HANDLE16 hCurHook; /* Current hook */
54 HANDLE16 hooks[WH_NB_HOOKS]; /* Task hooks list */
55 } MESSAGEQUEUE;
58 #define QUEUE_MAGIC 0xD46E80AF
59 #define MAX_SENDMSG_RECURSION 64
61 /* Message queue management methods */
62 extern MESSAGEQUEUE *QUEUE_Current(void);
63 extern MESSAGEQUEUE *QUEUE_Lock( HQUEUE16 hQueue );
64 extern void QUEUE_Unlock( MESSAGEQUEUE *queue );
65 extern void QUEUE_DeleteMsgQueue(void);
67 #endif /* __WINE_QUEUE_H */