mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 15:34:13 +00:00
Support for HWN_BROADCAST in NtUserPostMessage.
svn path=/trunk/; revision=7211
This commit is contained in:
parent
b1e7c60fdd
commit
9516179123
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* 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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -40,6 +40,7 @@
|
||||||
#include <include/callback.h>
|
#include <include/callback.h>
|
||||||
#include <include/painting.h>
|
#include <include/painting.h>
|
||||||
#include <include/input.h>
|
#include <include/input.h>
|
||||||
|
#include <include/desktop.h>
|
||||||
#include <internal/safe.h>
|
#include <internal/safe.h>
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
|
@ -433,6 +434,22 @@ NtUserPostMessage(HWND hWnd,
|
||||||
{
|
{
|
||||||
MsqPostQuitMessage(PsGetWin32Thread()->MessageQueue, wParam);
|
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
|
else
|
||||||
{
|
{
|
||||||
Window = IntGetWindowObject(hWnd);
|
Window = IntGetWindowObject(hWnd);
|
||||||
|
|
Loading…
Reference in a new issue