Forgot to remove this

svn path=/trunk/; revision=4476
This commit is contained in:
KJK::Hyperion 2003-04-02 02:09:28 +00:00
parent 4e0c54a3b8
commit 323478bacf

View file

@ -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 <k32.h>
/* 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 */