diff --git a/reactos/subsys/win32k/ntuser/message.c b/reactos/subsys/win32k/ntuser/message.c index 620eb800e01..086ae10a855 100644 --- a/reactos/subsys/win32k/ntuser/message.c +++ b/reactos/subsys/win32k/ntuser/message.c @@ -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 #include +#include #include #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);