Commit in reactos/subsys/win32k on MAIN
include/desktop.h+31.10 -> 1.11
ntuser/desktop.c+37-11.26 -> 1.27
      /misc.c+5-351.89 -> 1.90
+45-36
3 modified files
- Move desktop code from NtUserUpdatePerUserSystemParameters to IntDesktopUpdatePerUserSettings.

reactos/subsys/win32k/include
desktop.h 1.10 -> 1.11
diff -u -r1.10 -r1.11
--- desktop.h	6 Dec 2004 02:23:05 -0000	1.10
+++ desktop.h	10 Dec 2004 16:52:04 -0000	1.11
@@ -66,6 +66,9 @@
                     HWINSTA *hWinSta,
                     HDESK *hDesktop);
 
+BOOL FASTCALL
+IntDesktopUpdatePerUserSettings(BOOL bEnable);
+
 #define IntIsActiveDesktop(Desktop) \
   ((Desktop)->WindowStation->ActiveDesktop == (Desktop))
 

reactos/subsys/win32k/ntuser
desktop.c 1.26 -> 1.27
diff -u -r1.26 -r1.27
--- desktop.c	6 Dec 2004 02:23:05 -0000	1.26
+++ desktop.c	10 Dec 2004 16:52:04 -0000	1.27
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- *  $Id: desktop.c,v 1.26 2004/12/06 02:23:05 navaraf Exp $
+ *  $Id: desktop.c,v 1.27 2004/12/10 16:52:04 navaraf Exp $
  *
  *  COPYRIGHT:        See COPYING in the top level directory
  *  PROJECT:          ReactOS kernel
@@ -408,6 +408,42 @@
   return pdo->DesktopWindow;
 }
 
+BOOL FASTCALL IntDesktopUpdatePerUserSettings(BOOL bEnable)
+{
+   if (bEnable)
+   {
+      RTL_QUERY_REGISTRY_TABLE QueryTable[2];
+      NTSTATUS Status;
+
+      RtlZeroMemory(QueryTable, sizeof(QueryTable));
+
+      QueryTable[0].Flags = RTL_QUERY_REGISTRY_DIRECT;
+      QueryTable[0].Name = L"PaintDesktopVersion";
+      QueryTable[0].EntryContext = &g_PaintDesktopVersion;
+
+      /* Query the "PaintDesktopVersion" flag in the "Control Panel\Desktop" key */
+      Status = RtlQueryRegistryValues(RTL_REGISTRY_USER, 
+                                      L"Control Panel\\Desktop",
+                                      QueryTable, NULL, NULL);
+      if (!NT_SUCCESS(Status))
+      {
+         DPRINT1("RtlQueryRegistryValues failed for PaintDesktopVersion (%x)\n",
+                 Status);
+         g_PaintDesktopVersion = FALSE;
+         return FALSE;
+      }
+    
+      DPRINT("PaintDesktopVersion = %d\n", g_PaintDesktopVersion);
+
+      return TRUE;
+   }
+   else
+   {
+      g_PaintDesktopVersion = FALSE;
+      return TRUE;
+   }
+}
+
 /* PUBLIC FUNCTIONS ***********************************************************/
 
 NTSTATUS FASTCALL

reactos/subsys/win32k/ntuser
misc.c 1.89 -> 1.90
diff -u -r1.89 -r1.90
--- misc.c	6 Dec 2004 02:23:05 -0000	1.89
+++ misc.c	10 Dec 2004 16:52:04 -0000	1.90
@@ -1,4 +1,4 @@
-/* $Id: misc.c,v 1.89 2004/12/06 02:23:05 navaraf Exp $
+/* $Id: misc.c,v 1.90 2004/12/10 16:52:04 navaraf Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -1330,44 +1330,14 @@
     }
 }
 
-
 BOOL STDCALL
 NtUserUpdatePerUserSystemParameters(
-   DWORD dwUnknown,
+   DWORD dwReserved,
    BOOL bEnable)
 {
-   if (bEnable)
-   {
-      RTL_QUERY_REGISTRY_TABLE QueryTable[2];
-      NTSTATUS Status;
-
-      RtlZeroMemory(QueryTable, sizeof(QueryTable));
-
-      QueryTable[0].Flags = RTL_QUERY_REGISTRY_DIRECT;
-      QueryTable[0].Name = L"PaintDesktopVersion";
-      QueryTable[0].EntryContext = &g_PaintDesktopVersion;
-
-      /* Query the "PaintDesktopVersion" flag in the "Control Panel\Desktop" key */
-      Status = RtlQueryRegistryValues(RTL_REGISTRY_USER, 
-                                      L"Control Panel\\Desktop",
-                                      QueryTable, NULL, NULL);
-      if (!NT_SUCCESS(Status))
-      {
-         DPRINT1("RtlQueryRegistryValues failed for PaintDesktopVersion (%x)\n",
-                 Status);
-         g_PaintDesktopVersion = FALSE;
-         return FALSE;
-      }
-    
-      DPRINT1("PaintDesktopVersion = %d\n", g_PaintDesktopVersion);
-
-      return TRUE;
-   }
-   else
-   {
-      g_PaintDesktopVersion = FALSE;
-      return TRUE;
-   }
+   BOOL Result = TRUE;
+   Result &= IntDesktopUpdatePerUserSettings(bEnable);
+   return Result;
 }
 
 /* EOF */
CVSspam 0.2.8