- Silence some debug messages
authorAlex Ionescu <aionescu@gmail.com>
Sun, 31 Jul 2005 06:22:05 +0000 (06:22 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Sun, 31 Jul 2005 06:22:05 +0000 (06:22 +0000)
- Modify base address of iphlpapi so it doesn't get relocated
- Implemented SetTaskmanWindow and SetProgmanWindow

svn path=/trunk/; revision=16913

reactos/baseaddress.xml
reactos/lib/user32/windows/window.c
reactos/subsys/csrss/win32csr/conio.c
reactos/subsys/win32k/ntuser/misc.c

index d76649a..49751ad 100644 (file)
@@ -61,8 +61,8 @@
 <property name="BASEADDRESS_IMAGEHLP" value="0x76c90000" />
 <property name="BASEADDRESS_FMIFS" value="0x76df0000" />
 <property name="BASEADDRESS_SHELL32" value="0x77260000" />
-<property name="BASEADDRESS_IPHLPAPI" value="0x77300000" />
-<property name="BASEADDRESS_MMDRV" value="0x77500000" />
+<property name="BASEADDRESS_IPHLPAPI" value="0x77400000" />
+<property name="BASEADDRESS_MMDRV" value="0x77530000" />
 <property name="BASEADDRESS_CRTDLL" value="0x77630000" />
 <property name="BASEADDRESS_CFGMGR32" value="0x77700000" />
 <property name="BASEADDRESS_MSAFD" value="0x777a0000" />
index acc7a36..eeff13d 100644 (file)
@@ -1467,25 +1467,23 @@ GetFocus(VOID)
 }
 
 /*
- * @unimplemented
+ * @implemented
  */
 HWND
 STDCALL
-SetTaskmanWindow(HWND x)
+SetTaskmanWindow(HWND hWnd)
 {
-  UNIMPLEMENTED;
-  return FALSE;
+    return NtUserCallHwndOpt(hWnd, HWNDOPT_ROUTINE_SETTASKMANWINDOW);
 }
 
 /*
- * @unimplemented
+ * @implemented
  */
 HWND
 STDCALL
-SetProgmanWindow(HWND x)
+SetProgmanWindow(HWND hWnd)
 {
-  UNIMPLEMENTED;
-  return FALSE;
+    return NtUserCallHwndOpt(hWnd, HWNDOPT_ROUTINE_SETTASKMANWINDOW);
 }
 
 /*
index dbe2f42..c520478 100644 (file)
@@ -226,7 +226,7 @@ CSR_API(CsrAllocConsole)
     PCSRSS_CONSOLE Console;
     NTSTATUS Status;
 
-    DPRINT1("CsrAllocConsole\n");
+    DPRINT("CsrAllocConsole\n");
 
     Request->Header.MessageSize = sizeof(CSR_API_MESSAGE);
     Request->Header.DataSize = sizeof(CSR_API_MESSAGE) - LPC_MESSAGE_BASE_SIZE;
@@ -250,7 +250,7 @@ CSR_API(CsrAllocConsole)
     /* If we don't need a console, then get out of here */
     if (!Request->Data.AllocConsoleRequest.ConsoleNeeded)
     {
-        DPRINT1("No console needed\n");
+        DPRINT("No console needed\n");
         return STATUS_SUCCESS;
     }
 
@@ -336,7 +336,7 @@ CSR_API(CsrAllocConsole)
 
     /* Set the Ctrl Dispatcher */
     ProcessData->CtrlDispatcher = Request->Data.AllocConsoleRequest.CtrlDispatcher;
-    DPRINT1("CSRSS:CtrlDispatcher address: %x\n", ProcessData->CtrlDispatcher);
+    DPRINT("CSRSS:CtrlDispatcher address: %x\n", ProcessData->CtrlDispatcher);
 
     /* Insert into the list */
     InsertHeadList(&ProcessData->Console->ProcessList, &ProcessData->ProcessEntry);
index 518ee45..4bc6d4e 100644 (file)
@@ -11,7 +11,7 @@
 
 #include <w32k.h>
 
-#define DEBUG
+#define NDEBUG
 #include <debug.h>
 
 /* registered Logon process */
@@ -716,6 +716,9 @@ NtUserCallHwndLock(
    return Ret;
 }
 
+/*
+ * @unimplemented
+ */
 HWND
 STDCALL
 NtUserCallHwndOpt(
@@ -725,15 +728,23 @@ NtUserCallHwndOpt(
    switch (Routine)
    {
       case HWNDOPT_ROUTINE_SETPROGMANWINDOW:
-         /* FIXME */
+         /* 
+          * FIXME 
+          * Nothing too hard...validate the hWnd and save it in the Desktop Info
+          */
+         DPRINT1("HWNDOPT_ROUTINE_SETPROGMANWINDOW UNIMPLEMENTED\n");
          break;
 
       case HWNDOPT_ROUTINE_SETTASKMANWINDOW:
-         /* FIXME */
+         /* 
+          * FIXME 
+          * Nothing too hard...validate the hWnd and save it in the Desktop Info
+          */
+         DPRINT1("HWNDOPT_ROUTINE_SETTASKMANWINDOW UNIMPLEMENTED\n");
          break;
    }
 
-   return 0;
+   return Param;
 }
 
 /*