Revert accidential changes. Modified: trunk/reactos/lib/kernel32/debug/debugger.c _____
Modified: trunk/reactos/lib/kernel32/debug/debugger.c --- trunk/reactos/lib/kernel32/debug/debugger.c 2005-01-18 13:59:14 UTC (rev 13122) +++ trunk/reactos/lib/kernel32/debug/debugger.c 2005-01-18 14:16:01 UTC (rev 13123) @@ -79,46 +79,14 @@
* * @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; }