[ros-diffs] [jimtabor] 53450: [Win32k] - Move function out of the stub file.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Fri Aug 26 03:02:03 UTC 2011


Author: jimtabor
Date: Fri Aug 26 03:02:00 2011
New Revision: 53450

URL: http://svn.reactos.org/svn/reactos?rev=53450&view=rev
Log:
[Win32k]
- Move function out of the stub file.

Modified:
    trunk/reactos/subsystems/win32/win32k/include/window.h
    trunk/reactos/subsystems/win32/win32k/ntuser/ntstubs.c
    trunk/reactos/subsystems/win32/win32k/ntuser/painting.c
    trunk/reactos/subsystems/win32/win32k/ntuser/timer.c
    trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c

Modified: trunk/reactos/subsystems/win32/win32k/include/window.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/include/window.h?rev=53450&r1=53449&r2=53450&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/window.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/window.h [iso-8859-1] Fri Aug 26 03:02:00 2011
@@ -14,6 +14,8 @@
 
 extern ATOM AtomMessage;
 extern ATOM AtomWndObj; /* WNDOBJ list */
+extern ATOM AtomLayer;
+extern ATOM AtomFlashWndState;
 
 BOOL FASTCALL UserUpdateUiState(PWND Wnd, WPARAM wParam);
 

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/ntstubs.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/ntstubs.c?rev=53450&r1=53449&r2=53450&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/ntstubs.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/ntstubs.c [iso-8859-1] Fri Aug 26 03:02:00 2011
@@ -742,54 +742,6 @@
 {
     STUB;
     return 0;
-}
-
-DWORD
-APIENTRY
-NtUserMinMaximize(
-    HWND hWnd,
-    UINT cmd, // Wine SW_ commands
-    BOOL Hide)
-{
-  RECTL NewPos;
-  UINT SwFlags;
-  PWND pWnd;
-
-  TRACE("Enter NtUserMinMaximize\n");
-  UserEnterExclusive();
-
-  pWnd = UserGetWindowObject(hWnd);
-  if ( !pWnd ||                          // FIXME:
-        pWnd == IntGetDesktopWindow() || // pWnd->fnid == FNID_DESKTOP
-        pWnd == IntGetMessageWindow() )  // pWnd->fnid == FNID_MESSAGEWND
-  {
-     goto Exit;
-  }
-
-  if ( cmd > SW_MAX || pWnd->state2 & WNDS2_INDESTROY)
-  {
-     EngSetLastError(ERROR_INVALID_PARAMETER);
-     goto Exit;
-  }
-
-  co_WinPosMinMaximize(pWnd, cmd, &NewPos);
-
-  SwFlags = Hide ? SWP_NOACTIVATE|SWP_NOZORDER|SWP_FRAMECHANGED : SWP_NOZORDER|SWP_FRAMECHANGED;
-
-  co_WinPosSetWindowPos( pWnd,
-                         NULL,
-                         NewPos.left,
-                         NewPos.top,
-                         NewPos.right,
-                         NewPos.bottom,
-                         SwFlags);
-
-  co_WinPosShowWindow(pWnd, cmd);
-
-Exit:
-  TRACE("Leave NtUserMinMaximize\n");
-  UserLeave();
-  return 0; // Always NULL?
 }
 
 DWORD
@@ -1055,23 +1007,6 @@
     return 0;
 }
 
-BOOL
-APIENTRY
-NtUserValidateTimerCallback(
-    HWND hWnd,
-    WPARAM wParam,
-    LPARAM lParam)
-{
-  BOOL Ret = FALSE;
-
-  UserEnterShared();
-
-  Ret = ValidateTimerCallback(PsGetCurrentThreadWin32Thread(), lParam);
-
-  UserLeave();
-  return Ret;
-}
-
 DWORD
 APIENTRY
 NtUserRemoteConnect(
@@ -1154,48 +1089,6 @@
    STUB
 
    return 0;
-}
-
-/*
- * @implemented
- */
-BOOL APIENTRY
-NtUserFlashWindowEx(IN PFLASHWINFO pfwi)
-{
-   PWND pWnd;
-   FLASHWINFO finfo = {0};
-   BOOL Ret = TRUE;
-
-   UserEnterExclusive();
-
-   _SEH2_TRY
-   {
-      ProbeForRead(pfwi, sizeof(FLASHWINFO), sizeof(ULONG));
-      RtlCopyMemory(&finfo, pfwi, sizeof(FLASHWINFO));
-   }
-   _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
-   {
-      SetLastNtError(_SEH2_GetExceptionCode());
-      Ret = FALSE;
-   }
-   _SEH2_END
-
-   if (!Ret) goto Exit;
-
-   if (!(pWnd = (PWND)UserGetObject(gHandleTable, finfo.hwnd, otWindow)) ||
-        finfo.cbSize != sizeof(FLASHWINFO) ||
-        finfo.dwFlags & ~(FLASHW_ALL|FLASHW_TIMER|FLASHW_TIMERNOFG) )
-   {
-      EngSetLastError(ERROR_INVALID_PARAMETER);
-      Ret = FALSE;
-      goto Exit;
-   }
-
-   //Ret = IntFlashWindowEx(pWnd, &finfo);
-
-Exit:
-   UserLeave();
-   return Ret;
 }
 
 /*

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/painting.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/painting.c?rev=53450&r1=53449&r2=53450&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/painting.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/painting.c [iso-8859-1] Fri Aug 26 03:02:00 2011
@@ -951,6 +951,47 @@
    END_CLEANUP;
 }
 
+/*
+ * @implemented
+ */
+BOOL APIENTRY
+NtUserFlashWindowEx(IN PFLASHWINFO pfwi)
+{
+   PWND pWnd;
+   FLASHWINFO finfo = {0};
+   BOOL Ret = TRUE;
+
+   UserEnterExclusive();
+
+   _SEH2_TRY
+   {
+      ProbeForRead(pfwi, sizeof(FLASHWINFO), sizeof(ULONG));
+      RtlCopyMemory(&finfo, pfwi, sizeof(FLASHWINFO));
+   }
+   _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
+   {
+      SetLastNtError(_SEH2_GetExceptionCode());
+      Ret = FALSE;
+   }
+   _SEH2_END
+
+   if (!Ret) goto Exit;
+
+   if (!(pWnd = (PWND)UserGetObject(gHandleTable, finfo.hwnd, otWindow)) ||
+        finfo.cbSize != sizeof(FLASHWINFO) ||
+        finfo.dwFlags & ~(FLASHW_ALL|FLASHW_TIMER|FLASHW_TIMERNOFG) )
+   {
+      EngSetLastError(ERROR_INVALID_PARAMETER);
+      Ret = FALSE;
+      goto Exit;
+   }
+
+   //Ret = IntFlashWindowEx(pWnd, &finfo);
+
+Exit:
+   UserLeave();
+   return Ret;
+}
 
 INT FASTCALL
 co_UserGetUpdateRgn(PWND Window, HRGN hRgn, BOOL bErase)

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/timer.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/timer.c?rev=53450&r1=53449&r2=53450&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/timer.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/timer.c [iso-8859-1] Fri Aug 26 03:02:00 2011
@@ -684,5 +684,22 @@
    END_CLEANUP;
 }
 
+BOOL
+APIENTRY
+NtUserValidateTimerCallback(
+    HWND hWnd,
+    WPARAM wParam,
+    LPARAM lParam)
+{
+  BOOL Ret = FALSE;
+
+  UserEnterShared();
+
+  Ret = ValidateTimerCallback(PsGetCurrentThreadWin32Thread(), lParam);
+
+  UserLeave();
+  return Ret;
+}
+
 
 /* EOF */

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c?rev=53450&r1=53449&r2=53450&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] Fri Aug 26 03:02:00 2011
@@ -1944,6 +1944,54 @@
    return Ret;
 }
 
+DWORD
+APIENTRY
+NtUserMinMaximize(
+    HWND hWnd,
+    UINT cmd, // Wine SW_ commands
+    BOOL Hide)
+{
+  RECTL NewPos;
+  UINT SwFlags;
+  PWND pWnd;
+
+  TRACE("Enter NtUserMinMaximize\n");
+  UserEnterExclusive();
+
+  pWnd = UserGetWindowObject(hWnd);
+  if ( !pWnd ||                          // FIXME:
+        pWnd == IntGetDesktopWindow() || // pWnd->fnid == FNID_DESKTOP
+        pWnd == IntGetMessageWindow() )  // pWnd->fnid == FNID_MESSAGEWND
+  {
+     goto Exit;
+  }
+
+  if ( cmd > SW_MAX || pWnd->state2 & WNDS2_INDESTROY)
+  {
+     EngSetLastError(ERROR_INVALID_PARAMETER);
+     goto Exit;
+  }
+
+  co_WinPosMinMaximize(pWnd, cmd, &NewPos);
+
+  SwFlags = Hide ? SWP_NOACTIVATE|SWP_NOZORDER|SWP_FRAMECHANGED : SWP_NOZORDER|SWP_FRAMECHANGED;
+
+  co_WinPosSetWindowPos( pWnd,
+                         NULL,
+                         NewPos.left,
+                         NewPos.top,
+                         NewPos.right,
+                         NewPos.bottom,
+                         SwFlags);
+
+  co_WinPosShowWindow(pWnd, cmd);
+
+Exit:
+  TRACE("Leave NtUserMinMaximize\n");
+  UserLeave();
+  return 0; // Always NULL?
+}
+
 /*
  * @implemented
  */




More information about the Ros-diffs mailing list