mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 08:03:01 +00:00
Implemented SetShellWindowEx()
svn path=/trunk/; revision=5487
This commit is contained in:
parent
bdb03fa472
commit
798b12d6be
3 changed files with 20 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
||||||
2003-09-09 Martin Fuchs <martin-fuchs@gmx.net>
|
2003-09-09 Martin Fuchs <martin-fuchs@gmx.net>
|
||||||
|
|
||||||
* include/func.h: added GetShellWindow() since it's now contained in the MS Platform SDK headers
|
* include/func.h: added GetShellWindow()
|
||||||
* lib/user32/misc/desktop.c: implemented GetShellWindow() and SetShellWindow().
|
* lib/user32/misc/desktop.c: implemented GetShellWindow(), SetShellWindow() and SetShellWindowEx().
|
||||||
* lib/user32/user32.def: Ditto.
|
* lib/user32/user32.def: Ditto.
|
||||||
* lib/user32/user32.edf: Ditto.
|
* lib/user32/user32.edf: Ditto.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: desktop.c,v 1.19 2003/08/09 08:57:13 mf Exp $
|
/* $Id: desktop.c,v 1.20 2003/08/09 13:13:43 mf Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS user32.dll
|
* PROJECT: ReactOS user32.dll
|
||||||
|
@ -307,8 +307,9 @@ SwitchDesktop(
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* globally stored handle to the shell window */
|
/* globally stored handles to the shell windows */
|
||||||
HWND hwndShellWindow = 0;
|
HWND hwndShellWindow = 0;
|
||||||
|
HWND hwndShellListView = 0;
|
||||||
DWORD pidShellWindow = 0;
|
DWORD pidShellWindow = 0;
|
||||||
|
|
||||||
|
|
||||||
|
@ -326,15 +327,16 @@ GetShellWindow(VOID)
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
BOOL STDCALL
|
BOOL STDCALL
|
||||||
SetShellWindow(HWND hwnd)
|
SetShellWindowEx(HWND hwndShell, HWND hwndShellListView)
|
||||||
{
|
{
|
||||||
/* test if we are permitted to change the shell window */
|
/* test if we are permitted to change the shell window */
|
||||||
if (pidShellWindow && GetCurrentProcessId()!=pidShellWindow)
|
if (pidShellWindow && GetCurrentProcessId()!=pidShellWindow)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
hwndShellWindow = hwnd;
|
hwndShellWindow = hwndShell;
|
||||||
|
hwndShellListView = hwndShellListView;
|
||||||
|
|
||||||
if (hwnd)
|
if (hwndShell)
|
||||||
pidShellWindow = GetCurrentProcessId(); /* request shell window for the calling process */
|
pidShellWindow = GetCurrentProcessId(); /* request shell window for the calling process */
|
||||||
else
|
else
|
||||||
pidShellWindow = 0; /* shell window is now free for other processes. */
|
pidShellWindow = 0; /* shell window is now free for other processes. */
|
||||||
|
@ -342,4 +344,14 @@ SetShellWindow(HWND hwnd)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @implemented
|
||||||
|
*/
|
||||||
|
BOOL STDCALL
|
||||||
|
SetShellWindow(HWND hwndShell)
|
||||||
|
{
|
||||||
|
return SetShellWindowEx(hwndShell, 0);
|
||||||
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
|
@ -592,7 +592,7 @@ SetScrollInfo@16
|
||||||
SetScrollPos@16
|
SetScrollPos@16
|
||||||
SetScrollRange@20
|
SetScrollRange@20
|
||||||
SetShellWindow@4
|
SetShellWindow@4
|
||||||
;SetShellWindowEx
|
SetShellWindowEx@8
|
||||||
SetSysColors@12
|
SetSysColors@12
|
||||||
;SetSysColorsTemp
|
;SetSysColorsTemp
|
||||||
SetSystemCursor@8
|
SetSystemCursor@8
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue