Author: tkreuzer
Date: Fri Feb 8 04:45:54 2008
New Revision: 32203
URL:
http://svn.reactos.org/svn/reactos?rev=32203&view=rev
Log:
patch by Stefan Ginsberg (stefan__100__ AT hotmail DOT com):
remove obsolete syscalls NtUserGetDesktopWindow and NtUserGetParent
Modified:
trunk/reactos/include/reactos/win32k/ntuser.h
trunk/reactos/subsystems/win32/win32k/ntuser/window.c
trunk/reactos/subsystems/win32/win32k/w32ksvc.db
Modified: trunk/reactos/include/reactos/win32k/ntuser.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/win32k/ntu…
==============================================================================
--- trunk/reactos/include/reactos/win32k/ntuser.h (original)
+++ trunk/reactos/include/reactos/win32k/ntuser.h Fri Feb 8 04:45:54 2008
@@ -475,9 +475,6 @@
BOOL NTAPI
NtUserGetClientOrigin(HWND hWnd, LPPOINT Point);
-
-HWND NTAPI
-NtUserGetDesktopWindow();
NTSTATUS
NTAPI
@@ -2545,9 +2542,6 @@
NtUserGetQueueStatus(BOOL ClearChanges);
HWND NTAPI
-NtUserGetParent(HWND hWnd);
-
-HWND NTAPI
NtUserGetWindow(HWND hWnd, UINT Relationship);
HWND NTAPI
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/window.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/window.c Fri Feb 8 04:45:54 2008
@@ -2963,26 +2963,6 @@
/*
- * @implemented
- */
-HWND STDCALL
-NtUserGetDesktopWindow()
-{
- DECLARE_RETURN(HWND);
-
- DPRINT("Enter NtUserGetDesktopWindow\n");
- UserEnterShared();
-
- RETURN( IntGetDesktopWindow());
-
-CLEANUP:
- DPRINT("Leave NtUserGetDesktopWindow, ret=%i\n",_ret_);
- UserLeave();
- END_CLEANUP;
-}
-
-
-/*
* @unimplemented
*/
DWORD STDCALL
@@ -3049,52 +3029,6 @@
UserLeave();
END_CLEANUP;
}
-
-
-/*
- * NtUserGetParent
- *
- * The NtUserGetParent function retrieves a handle to the specified window's
- * parent or owner.
- *
- * Remarks
- * Note that, despite its name, this function can return an owner window
- * instead of a parent window.
- *
- * Status
- * @implemented
- */
-
-HWND STDCALL
-NtUserGetParent(HWND hWnd)
-{
- PWINDOW_OBJECT Wnd, WndParent;
- HWND hWndParent = NULL;
- DECLARE_RETURN(HWND);
-
- DPRINT("Enter NtUserGetParent\n");
- UserEnterExclusive();
-
- if (!(Wnd = UserGetWindowObject(hWnd)))
- {
- RETURN( NULL);
- }
-
- WndParent = IntGetParent(Wnd);
- if (WndParent)
- {
- hWndParent = WndParent->hSelf;
- }
-
- RETURN( hWndParent);
-
-CLEANUP:
- DPRINT("Leave NtUserGetParent, ret=%i\n",_ret_);
- UserLeave();
- END_CLEANUP;
-}
-
-
HWND FASTCALL
Modified: trunk/reactos/subsystems/win32/win32k/w32ksvc.db
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/w3…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/w32ksvc.db (original)
+++ trunk/reactos/subsystems/win32/win32k/w32ksvc.db Fri Feb 8 04:45:54 2008
@@ -680,8 +680,10 @@
NtGdiSetWindowExtEx 4
NtGdiSetWindowOrgEx 4
NtGdiStretchDIBits 13
+NtUserAcquireOrReleaseInputOwnership 1
NtUserBuildMenuItemList 4
NtUserCreateCursorIconHandle 2
+NtUserDereferenceWndProcHandle 2
NtUserEnumClipboardFormats 1
NtUserGetActiveWindow 0
NtUserGetCapture 0
@@ -689,16 +691,22 @@
NtUserGetClientOrigin 2
NtUserGetClientRect 2
NtUserGetMenuDefaultItem 3
+NtUserGetLastActivePopup 1
NtUserGetLastInputInfo 1
NtUserGetMinMaxInfo 3
NtUserGetMonitorInfo 2
NtUserGetProp 2
+NtUserGetQueueStatus 1
NtUserGetScrollInfo 3
+NtUserGetShellWindow 0
NtUserGetSystemMetrics 1
+NtUserGetWindow 2
NtUserGetWindowLong 3
NtUserGetWindowRect 2
+NtUserGetWindowThreadProcessId 2
NtUserInsertMenuItem 4
NtUserKillSystemTimer 2
+NtUserManualGuiCheck 1
NtUserMenuInfo 3
NtUserMenuItemInfo 5
NtUserMonitorFromPoint 3
@@ -711,21 +719,9 @@
NtUserSendMessageTimeout 8
NtUserSendNotifyMessage 4
NtUserSetScrollBarInfo 3
-NtUserGetDesktopWindow 0
NtGdiAddFontResource 2
NtGdiCreateDIBitmap 6
NtGdiGetAspectRatioFilterEx 2
NtGdiGetFontFamilyInfo 4
NtGdiOffsetViewportOrgEx 4
NtGdiOffsetWindowOrgEx 4
-#
-# ReactOS only system calls
-NtUserAcquireOrReleaseInputOwnership 1
-NtUserGetWindowThreadProcessId 2
-NtUserGetQueueStatus 1
-NtUserGetParent 1
-NtUserGetWindow 2
-NtUserGetLastActivePopup 1
-NtUserGetShellWindow 0
-NtUserDereferenceWndProcHandle 2
-NtUserManualGuiCheck 1