From b924c1f5281045249c027431a18290e23f9fb84b Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Tue, 18 Jan 2005 14:16:01 +0000 Subject: [PATCH] Revert accidential changes. svn path=/trunk/; revision=13123 --- reactos/lib/kernel32/debug/debugger.c | 46 ++++----------------------- 1 file changed, 7 insertions(+), 39 deletions(-) diff --git a/reactos/lib/kernel32/debug/debugger.c b/reactos/lib/kernel32/debug/debugger.c index bedecc76076..0f190b993fb 100644 --- a/reactos/lib/kernel32/debug/debugger.c +++ b/reactos/lib/kernel32/debug/debugger.c @@ -79,46 +79,14 @@ ContinueDebugEvent ( * * @unmplemented */ -BOOL WINAPI -DebugActiveProcess(DWORD dwProcessId) +BOOL +WINAPI +DebugActiveProcess( + DWORD dwProcessId + ) { - CSRSS_API_REQUEST Request; - CSRSS_API_REPLY Reply; - HANDLE hProcess; - NTSTATUS Status; - - hProcess = OpenProcess(PROCESS_ALL_ACCESS, - FALSE, - dwProcessId); - if (hProcess == NULL) - return FALSE; - - /* Notify CSRSS */ - Request.Type = CSRSS_DEBUG_PROCESS; - Request.Data.DebugProcessRequest.DebuggeeProcessId = dwProcessId; - Request.Data.DebugProcessRequest.DebuggerProcessId = GetCurrentProcessId(); - Request.Data.DebugProcessRequest.DebuggerThreadId = GetCurrentThreadId(); - Status = CsrClientCallServer(&Request, - &Reply, - sizeof(CSRSS_API_REQUEST), - sizeof(CSRSS_API_REPLY)); - if (!NT_SUCCESS(Status) || !NT_SUCCESS(Status = Reply.Status)) - { - SetLastError(ERROR_ACCESS_DENIED); - return FALSE; - } - - CloseHandle(hProcess); - - /* Connect the current process (debugger) to the debug subsystem */ - Status = DbgUiConnectToDbg(); - if (!NT_SUCCESS(Status)) - { - SetLastErrorByStatus(Status); - return FALSE; - } - - return TRUE; + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; }