mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
Check for messages sent by other threads
svn path=/trunk/; revision=4665
This commit is contained in:
parent
780c1a105d
commit
8d4eee3aab
1 changed files with 7 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: message.c,v 1.13 2003/05/04 15:42:21 gvg Exp $
|
/* $Id: message.c,v 1.14 2003/05/10 21:47:04 gvg Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -268,7 +268,8 @@ NtUserPeekMessage(LPMSG lpMsg,
|
||||||
/* FIXME: The only flag we process is PM_REMOVE - processing of others must still be implemented */
|
/* FIXME: The only flag we process is PM_REMOVE - processing of others must still be implemented */
|
||||||
RemoveMessages = wRemoveMsg & PM_REMOVE;
|
RemoveMessages = wRemoveMsg & PM_REMOVE;
|
||||||
|
|
||||||
/* FIXME: Dispatch sent messages here. */
|
/* Dispatch sent messages here. */
|
||||||
|
while (MsqDispatchOneSentMessage(ThreadQueue));
|
||||||
|
|
||||||
/* Now look for a quit message. */
|
/* Now look for a quit message. */
|
||||||
/* FIXME: WINE checks the message number filter here. */
|
/* FIXME: WINE checks the message number filter here. */
|
||||||
|
@ -312,11 +313,12 @@ NtUserPeekMessage(LPMSG lpMsg,
|
||||||
return(TRUE);
|
return(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* FIXME: Check for sent messages again. */
|
/* Check for sent messages again. */
|
||||||
|
while (MsqDispatchOneSentMessage(ThreadQueue));
|
||||||
|
|
||||||
/* FIXME: Check for paint messages. */
|
/* FIXME: Check for paint messages. */
|
||||||
|
|
||||||
return((BOOLEAN)(-1));
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL STDCALL
|
BOOL STDCALL
|
||||||
|
@ -409,7 +411,7 @@ W32kSendMessage(HWND hWnd,
|
||||||
{
|
{
|
||||||
PUSER_SENT_MESSAGE Message;
|
PUSER_SENT_MESSAGE Message;
|
||||||
PKEVENT CompletionEvent;
|
PKEVENT CompletionEvent;
|
||||||
|
|
||||||
CompletionEvent = ExAllocatePool(NonPagedPool, sizeof(KEVENT));
|
CompletionEvent = ExAllocatePool(NonPagedPool, sizeof(KEVENT));
|
||||||
KeInitializeEvent(CompletionEvent, NotificationEvent, FALSE);
|
KeInitializeEvent(CompletionEvent, NotificationEvent, FALSE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue