5b67e5c24e46eff76427aaa80cd878045cfdb818
[reactos.git] / reactos / lib / kernel32 / debug / debugger.c
1 /* $Id: debugger.c,v 1.2 2003/04/02 00:06:00 hyperion Exp $
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS system libraries
5 * FILE: lib/kernel32/debug/debugger.c
6 * PURPOSE: Win32 Debugger API
7 * PROGRAMMER: ???
8 */
9
10 /* INCLUDES ******************************************************************/
11
12 #include <k32.h>
13
14 /* FUNCTIONS *****************************************************************/
15
16 BOOL WINAPI CheckRemoteDebuggerPresent(HANDLE hProcess, PBOOL pbDebuggerPresent)
17 {
18 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
19 return FALSE;
20 }
21
22 BOOL WINAPI ContinueDebugEvent
23 (
24 DWORD dwProcessId,
25 DWORD dwThreadId,
26 DWORD dwContinueStatus
27 )
28 {
29 CLIENT_ID ClientId;
30 NTSTATUS Status;
31
32 ClientId.UniqueProcess = (HANDLE)dwProcessId;
33 ClientId.UniqueThread = (HANDLE)dwThreadId;
34
35 Status = DbgUiContinue(&ClientId, dwContinueStatus);
36
37 if(!NT_SUCCESS(Status))
38 {
39 SetLastErrorByStatus(Status);
40 return FALSE;
41 }
42
43 return TRUE;
44 }
45
46 BOOL WINAPI DebugActiveProcess(DWORD dwProcessId)
47 {
48 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
49 return FALSE;
50 }
51
52 BOOL WINAPI DebugActiveProcessStop(DWORD dwProcessId)
53 {
54 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
55 return FALSE;
56 }
57
58 BOOL WINAPI DebugSetProcessKillOnExit(BOOL KillOnExit)
59 {
60 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
61 return FALSE;
62 }
63
64 BOOL WINAPI IsDebuggerPresent(VOID)
65 {
66 return (WINBOOL)NtCurrentPeb()->BeingDebugged;
67 }
68
69 BOOL WINAPI WaitForDebugEvent(LPDEBUG_EVENT lpDebugEvent, DWORD dwMilliseconds)
70 {
71 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
72 return FALSE;
73 }
74
75 /* EOF */