mirror of
https://github.com/reactos/reactos.git
synced 2026-07-06 13:44:23 +08:00
implement GetShellWindow() and SetShellWindow()
svn path=/trunk/; revision=5478
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -591,7 +591,7 @@ SetRectEmpty@4
|
||||
SetScrollInfo@16
|
||||
SetScrollPos@16
|
||||
SetScrollRange@20
|
||||
;SetShellWindow
|
||||
SetShellWindow@4
|
||||
;SetShellWindowEx
|
||||
SetSysColors@12
|
||||
;SetSysColorsTemp
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user