mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
Support for HWN_BROADCAST in NtUserPostMessage.
svn path=/trunk/; revision=7211
This commit is contained in:
parent
b1e7c60fdd
commit
9516179123
1 changed files with 18 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: message.c,v 1.39 2003/12/20 21:45:14 weiden Exp $
|
||||
/* $Id: message.c,v 1.40 2003/12/24 10:23:13 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -40,6 +40,7 @@
|
|||
#include <include/callback.h>
|
||||
#include <include/painting.h>
|
||||
#include <include/input.h>
|
||||
#include <include/desktop.h>
|
||||
#include <internal/safe.h>
|
||||
|
||||
#define NDEBUG
|
||||
|
@ -433,6 +434,22 @@ NtUserPostMessage(HWND hWnd,
|
|||
{
|
||||
MsqPostQuitMessage(PsGetWin32Thread()->MessageQueue, wParam);
|
||||
}
|
||||
else if (hWnd == HWND_BROADCAST)
|
||||
{
|
||||
HWND *List;
|
||||
PWINDOW_OBJECT DesktopWindow;
|
||||
ULONG i;
|
||||
|
||||
DesktopWindow = IntGetWindowObject(IntGetDesktopWindow());
|
||||
List = IntWinListChildren(DesktopWindow);
|
||||
IntReleaseWindowObject(DesktopWindow);
|
||||
if (List != NULL)
|
||||
{
|
||||
for (i = 0; List[i]; i++)
|
||||
NtUserPostMessage(List[i], Msg, wParam, lParam);
|
||||
ExFreePool(List);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Window = IntGetWindowObject(hWnd);
|
||||
|
|
Loading…
Reference in a new issue