From 323478bacfe24840aced7d3ae7a29c28aa2f7a0f Mon Sep 17 00:00:00 2001 From: "KJK::Hyperion" Date: Wed, 2 Apr 2003 02:09:28 +0000 Subject: [PATCH] Forgot to remove this svn path=/trunk/; revision=4476 --- reactos/lib/kernel32/misc/debug.c | 113 ------------------------------ 1 file changed, 113 deletions(-) delete mode 100644 reactos/lib/kernel32/misc/debug.c diff --git a/reactos/lib/kernel32/misc/debug.c b/reactos/lib/kernel32/misc/debug.c deleted file mode 100644 index 5e46ba743dc..00000000000 --- a/reactos/lib/kernel32/misc/debug.c +++ /dev/null @@ -1,113 +0,0 @@ -/* $Id: debug.c,v 1.6 2003/01/15 21:24:34 chorns Exp $ - * - * COPYRIGHT: See COPYING in the top level directory - * PROJECT: ReactOS system libraries - * FILE: lib/kernel32/misc/debug.c - * PURPOSE: Application debugger support functions - * PROGRAMMER: ??? - */ - -/* INCLUDES ******************************************************************/ - -#include - - -/* FUNCTIONS *****************************************************************/ - -WINBOOL -STDCALL -ContinueDebugEvent ( - DWORD dwProcessId, - DWORD dwThreadId, - DWORD dwContinueStatus - ) -{ - CLIENT_ID ClientId; - NTSTATUS Status; - - ClientId.UniqueProcess = (HANDLE)dwProcessId; - ClientId.UniqueThread = (HANDLE)dwThreadId; - - Status = DbgUiContinue (&ClientId, - dwContinueStatus); - if (!NT_SUCCESS(Status)) - { - SetLastErrorByStatus (Status); - return FALSE; - } - return TRUE; -} - - -WINBOOL -STDCALL -DebugActiveProcess ( - DWORD dwProcessId - ) -{ - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - return FALSE; -} - - -VOID -STDCALL -DebugBreak ( - VOID - ) -{ - DbgBreakPoint (); -} - - -WINBOOL -STDCALL -IsDebuggerPresent ( - VOID - ) -{ - return (WINBOOL)NtCurrentPeb ()->BeingDebugged; -} - - -/* - * NOTE: Don't call DbgService()! - * It's a ntdll internal function and is NOT exported! - */ - -VOID STDCALL OutputDebugStringA(LPCSTR lpOutputString) -{ - DbgPrint( (PSTR)lpOutputString ); -} - -VOID STDCALL OutputDebugStringW(LPCWSTR lpOutputString) -{ - UNICODE_STRING UnicodeOutput; - ANSI_STRING AnsiString; - char buff[512]; - - UnicodeOutput.Buffer = (WCHAR *)lpOutputString; - UnicodeOutput.Length = lstrlenW(lpOutputString)*sizeof(WCHAR); - UnicodeOutput.MaximumLength = UnicodeOutput.Length; - AnsiString.Buffer = buff; - AnsiString.MaximumLength = 512; - AnsiString.Length = 0; - if( UnicodeOutput.Length > 512 ) - UnicodeOutput.Length = 512; - if( NT_SUCCESS( RtlUnicodeStringToAnsiString( &AnsiString, &UnicodeOutput, FALSE ) ) ) - DbgPrint( AnsiString.Buffer ); -} - - -WINBOOL -STDCALL -WaitForDebugEvent ( - LPDEBUG_EVENT lpDebugEvent, - DWORD dwMilliseconds - ) -{ - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - return FALSE; -} - -/* EOF */