From 2f532c71f47e5f7d8d988ce4d2c524f68934ef72 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Sun, 31 Jul 2005 06:22:05 +0000 Subject: [PATCH] - Silence some debug messages - Modify base address of iphlpapi so it doesn't get relocated - Implemented SetTaskmanWindow and SetProgmanWindow svn path=/trunk/; revision=16913 --- reactos/baseaddress.xml | 4 ++-- reactos/lib/user32/windows/window.c | 14 ++++++-------- reactos/subsys/csrss/win32csr/conio.c | 6 +++--- reactos/subsys/win32k/ntuser/misc.c | 19 +++++++++++++++---- 4 files changed, 26 insertions(+), 17 deletions(-) diff --git a/reactos/baseaddress.xml b/reactos/baseaddress.xml index d76649a0c65..49751adef6c 100644 --- a/reactos/baseaddress.xml +++ b/reactos/baseaddress.xml @@ -61,8 +61,8 @@ - - + + diff --git a/reactos/lib/user32/windows/window.c b/reactos/lib/user32/windows/window.c index acc7a361879..eeff13d9ade 100644 --- a/reactos/lib/user32/windows/window.c +++ b/reactos/lib/user32/windows/window.c @@ -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); } /* diff --git a/reactos/subsys/csrss/win32csr/conio.c b/reactos/subsys/csrss/win32csr/conio.c index dbe2f429bfd..c52047801c6 100644 --- a/reactos/subsys/csrss/win32csr/conio.c +++ b/reactos/subsys/csrss/win32csr/conio.c @@ -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); diff --git a/reactos/subsys/win32k/ntuser/misc.c b/reactos/subsys/win32k/ntuser/misc.c index 518ee4555dd..4bc6d4e0bdb 100644 --- a/reactos/subsys/win32k/ntuser/misc.c +++ b/reactos/subsys/win32k/ntuser/misc.c @@ -11,7 +11,7 @@ #include -#define DEBUG +#define NDEBUG #include /* 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; } /*