- Removed NtUserGetShellWindow, update related.

svn path=/trunk/; revision=34397
This commit is contained in:
James Tabor 2008-07-09 22:46:17 +00:00
parent 0461306bc8
commit 6299128828
4 changed files with 24 additions and 39 deletions

View file

@ -703,7 +703,9 @@ SetShellWindow(HWND hwndShell)
HWND STDCALL
GetShellWindow(VOID)
{
return NtUserGetShellWindow();
PDESKTOP pdi;
pdi = GetThreadDesktopInfo();
return pdi->hShellWindow;
}

View file

@ -34,6 +34,7 @@ typedef struct _DESKTOP
ULONG_PTR HeapLimit;
HWND hTaskManWindow;
HWND hProgmanWindow;
HWND hShellWindow;
struct _WINDOW *Wnd;
union
@ -333,7 +334,7 @@ typedef struct _W32CLIENTINFO
ULONG_PTR ulClientDelta;
PVOID phkCurrent;
ULONG fsHooks;
HWND hWND; // Well be replaced with CALLBACKWND.
HWND hWND; // Will be replaced with CALLBACKWND.
PVOID pvWND; // " "
ULONG Win32ClientInfo;
DWORD dwHookCurrent;
@ -373,6 +374,8 @@ typedef struct _PROPERTY
ATOM Atom;
} PROPERTY, *PPROPERTY;
PW32THREADINFO GetW32ThreadInfo(VOID);
PW32PROCESSINFO GetW32ProcessInfo(VOID);
@ -1281,7 +1284,7 @@ NtUserGetClassName(HWND hWnd,
INT
NTAPI
NtUserGetClassName(HWND hWnd,
BOOL Unknown, // 0 GetClassNameW, 1 RealGetWindowClassA/W
BOOL Real, // 0 GetClassNameW, 1 RealGetWindowClassA/W
PUNICODE_STRING ClassName);
#endif
@ -2725,10 +2728,6 @@ NtUserGetScrollInfo(
int fnBar,
LPSCROLLINFO lpsi);
HWND
NTAPI
NtUserGetShellWindow();
HWND
NTAPI
NtUserGetWindow(HWND hWnd, UINT Relationship);

View file

@ -3079,7 +3079,14 @@ CLEANUP:
/*
* UserGetShellWindow
*
* Returns a handle to shell window that was set by NtUserSetShellWindowEx.
*
* Status
* @implemented
*/
HWND FASTCALL UserGetShellWindow()
{
PWINSTATION_OBJECT WinStaObject;
@ -3102,32 +3109,6 @@ HWND FASTCALL UserGetShellWindow()
return( Ret);
}
/*
* NtUserGetShellWindow
*
* Returns a handle to shell window that was set by NtUserSetShellWindowEx.
*
* Status
* @implemented
*/
HWND STDCALL
NtUserGetShellWindow()
{
DECLARE_RETURN(HWND);
DPRINT("Enter NtUserGetShellWindow\n");
UserEnterShared();
RETURN( UserGetShellWindow() );
CLEANUP:
DPRINT("Leave NtUserGetShellWindow, ret=%i\n",_ret_);
UserLeave();
END_CLEANUP;
}
/*
* NtUserSetShellWindowEx
*
@ -3137,7 +3118,6 @@ CLEANUP:
* Status
* @implemented
*/
BOOL STDCALL
NtUserSetShellWindowEx(HWND hwndShell, HWND hwndListView)
{
@ -3146,6 +3126,7 @@ NtUserSetShellWindowEx(HWND hwndShell, HWND hwndListView)
DECLARE_RETURN(BOOL);
USER_REFERENCE_ENTRY Ref;
NTSTATUS Status;
PW32THREADINFO ti;;
DPRINT("Enter NtUserSetShellWindowEx\n");
UserEnterExclusive();
@ -3207,6 +3188,9 @@ NtUserSetShellWindowEx(HWND hwndShell, HWND hwndListView)
WinStaObject->ShellWindow = hwndShell;
WinStaObject->ShellListView = hwndListView;
ti = GetW32ThreadInfo();
if (ti->Desktop) ((PDESKTOP)ti->Desktop)->hShellWindow = hwndShell;
UserDerefObjectCo(WndShell);
ObDereferenceObject(WinStaObject);

View file

@ -679,6 +679,10 @@ NtGdiSetViewportExtEx 4
NtGdiSetViewportOrgEx 4
NtGdiSetWindowExtEx 4
NtGdiSetWindowOrgEx 4
NtGdiGetFontFamilyInfo 4
NtGdiOffsetViewportOrgEx 4
NtGdiOffsetWindowOrgEx 4
#
NtUserBuildMenuItemList 4
NtUserCreateCursorIconHandle 2
NtUserGetClassLong 3
@ -687,7 +691,6 @@ NtUserGetLastInputInfo 1
NtUserGetMinMaxInfo 3
NtUserGetMonitorInfo 2
NtUserGetScrollInfo 3
NtUserGetShellWindow 0
NtUserGetWindow 2
NtUserGetWindowLong 3
NtUserMenuInfo 3
@ -700,6 +703,3 @@ NtUserSendMessage 5
NtUserSendMessageTimeout 8
NtUserSendNotifyMessage 4
NtUserSetScrollBarInfo 3
NtGdiGetFontFamilyInfo 4
NtGdiOffsetViewportOrgEx 4
NtGdiOffsetWindowOrgEx 4