Commit 4cc1b339 authored by Alexandre Julliard's avatar Alexandre Julliard

Implemented the Win32 debug API functions.

parent e712e077
......@@ -1188,6 +1188,7 @@ BOOL WINAPI AllocConsole(void);
BOOL WINAPI AreFileApisANSI(void);
BOOL WINAPI Beep(DWORD,DWORD);
BOOL WINAPI CloseHandle(HANDLE);
BOOL WINAPI ContinueDebugEvent(DWORD,DWORD,DWORD);
HANDLE WINAPI ConvertToGlobalHandle(HANDLE hSrc);
BOOL WINAPI CopyFileA(LPCSTR,LPCSTR,BOOL);
BOOL WINAPI CopyFileW(LPCWSTR,LPCWSTR,BOOL);
......@@ -1224,6 +1225,7 @@ HANDLE WINAPI CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR);
HANDLE WINAPI CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR);
#define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
HANDLE WINAPI CreateThread(LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD);
BOOL WINAPI DebugActiveProcess(DWORD);
BOOL WINAPI DisableThreadLibraryCalls(HMODULE);
BOOL WINAPI DosDateTimeToFileTime(WORD,WORD,LPFILETIME);
BOOL WINAPI DuplicateHandle(HANDLE,HANDLE,HANDLE,HANDLE*,DWORD,BOOL,DWORD);
......
......@@ -173,41 +173,6 @@ SEGPTR WINAPI AnsiPrev16( SEGPTR start, SEGPTR current )
/***********************************************************************
* OutputDebugString16 (KERNEL.115)
*/
void WINAPI OutputDebugString16( LPCSTR str )
{
char module[10];
if (!GetModuleName16( GetCurrentTask(), module, sizeof(module) ))
strcpy( module, "???" );
DUMP( "%s says %s\n", module, debugstr_a(str) );
}
/***********************************************************************
* OutputDebugString32A (KERNEL32
*/
void WINAPI OutputDebugStringA( LPCSTR str )
{
OutputDebugString16( str );
}
/***********************************************************************
* OutputDebugString32W (KERNEL32
*/
void WINAPI OutputDebugStringW( LPCWSTR str )
{
LPSTR p = HEAP_strdupWtoA( GetProcessHeap(), 0, str );
OutputDebugStringA( p );
HeapFree( GetProcessHeap(), 0, p );
}
/***********************************************************************
* CharNext32A (USER32.29)
*/
LPSTR WINAPI CharNextA( LPCSTR ptr )
......
......@@ -8,6 +8,7 @@ MODULE = scheduler
C_SRCS = \
client.c \
critsection.c \
debugger.c \
event.c \
handle.c \
mutex.c \
......
......@@ -41,7 +41,7 @@ static void CLIENT_Die( THDB *thdb )
/***********************************************************************
* CLIENT_ProtocolError
*/
static void CLIENT_ProtocolError( const char *err, ... )
void CLIENT_ProtocolError( const char *err, ... )
{
THDB *thdb = THREAD_Current();
va_list args;
......
......@@ -265,24 +265,6 @@ VOID WINAPI SetDebugErrorLevel( DWORD dwLevel )
/******************************************************************************
* WaitForDebugEvent [KERNEL32.720]
* Waits for a debugging event to occur in a process being debugged
*
* PARAMS
* lpDebugEvent [I] Address of structure for event information
* dwMilliseconds [I] Number of milliseconds to wait for event
*
* RETURNS STD
*/
BOOL WINAPI WaitForDebugEvent( LPDEBUG_EVENT lpDebugEvent,
DWORD dwMilliseconds )
{
FIXME_(win32)("(%p,%ld): stub\n", lpDebugEvent, dwMilliseconds);
return FALSE;
}
/******************************************************************************
* SetComputerName32A [KERNEL32.621]
*/
BOOL WINAPI SetComputerNameA( LPCSTR lpComputerName )
......
......@@ -21,14 +21,6 @@
DEFAULT_DEBUG_CHANNEL(win32)
/**********************************************************************
* ContinueDebugEvent [KERNEL32.146]
*/
BOOL WINAPI ContinueDebugEvent(DWORD pid,DWORD tid,DWORD contstatus) {
FIXME("(0x%lx,%ld,%ld): stub\n",pid,tid,contstatus);
return TRUE;
}
/*********************************************************************
* Process_ClockTimeToFileTime
* (olorin@fandra.org, 20-Sep-1998)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment