From 3eb9a3bce5545bc2ed0825ffe3a025359c59bbb8 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Sat, 9 Aug 2003 08:42:35 +0000 Subject: [PATCH] implement GetShellWindow() and SetShellWindow() svn path=/trunk/; revision=5478 --- reactos/lib/user32/misc/desktop.c | 31 ++++++++++++++++++++++++++++++- reactos/lib/user32/user32.def | 2 +- reactos/lib/user32/user32.edf | 4 ++-- 3 files changed, 33 insertions(+), 4 deletions(-) diff --git a/reactos/lib/user32/misc/desktop.c b/reactos/lib/user32/misc/desktop.c index 44a08eef699..cefff8480d6 100644 --- a/reactos/lib/user32/misc/desktop.c +++ b/reactos/lib/user32/misc/desktop.c @@ -1,4 +1,4 @@ -/* $Id: desktop.c,v 1.17 2003/08/05 15:41:03 weiden Exp $ +/* $Id: desktop.c,v 1.18 2003/08/09 08:42:35 mf Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS user32.dll @@ -306,4 +306,33 @@ SwitchDesktop( return NtUserSwitchDesktop(hDesktop); } + + /* globally stored handle to the shell window */ +HWND hwndShellWindow = 0; + + +/* + * @implemented + */ +HWND STDCALL +GetShellWindow(VOID) +{ + return hwndShellWindow; +} + + +/* + * @implemented + */ +BOOL STDCALL +SetShellWindow(HWND hwnd) +{ + if (hwndShellWindow) + return FALSE; + + hwndShellWindow = hwnd; + + return TRUE; +} + /* EOF */ diff --git a/reactos/lib/user32/user32.def b/reactos/lib/user32/user32.def index 7089196b6c7..e0368e571fb 100644 --- a/reactos/lib/user32/user32.def +++ b/reactos/lib/user32/user32.def @@ -591,7 +591,7 @@ SetRectEmpty@4 SetScrollInfo@16 SetScrollPos@16 SetScrollRange@20 -;SetShellWindow +SetShellWindow@4 ;SetShellWindowEx SetSysColors@12 ;SetSysColorsTemp diff --git a/reactos/lib/user32/user32.edf b/reactos/lib/user32/user32.edf index febd3a9054e..c3c19c2f33f 100644 --- a/reactos/lib/user32/user32.edf +++ b/reactos/lib/user32/user32.edf @@ -324,7 +324,7 @@ GetScrollBarInfo=GetScrollBarInfo@12 GetScrollInfo=GetScrollInfo@12 GetScrollPos=GetScrollPos@8 GetScrollRange=GetScrollRange@16 -;GetShellWindow +GetShellWindow=GetShellWindow@0 GetSubMenu=GetSubMenu@8 GetSysColor=GetSysColor@4 GetSysColorBrush=GetSysColorBrush@4 @@ -591,7 +591,7 @@ SetRectEmpty=SetRectEmpty@4 SetScrollInfo=SetScrollInfo@16 SetScrollPos=SetScrollPos@16 SetScrollRange=SetScrollRange@20 -;SetShellWindow +SetShellWindow=SetShellWindow@4 ;SetShellWindowEx SetSysColors=SetSysColors@12 ;SetSysColorsTemp