update for HEAD-2003091401
[reactos.git] / lib / kernel32 / debug / debugger.c
1 /* $Id$
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 /*
17  * @unimplemented
18  */
19 BOOL WINAPI CheckRemoteDebuggerPresent(HANDLE hProcess, PBOOL pbDebuggerPresent)
20 {
21  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
22  return FALSE;
23 }
24
25
26 /*
27  * @implemented
28  */
29 BOOL WINAPI ContinueDebugEvent
30 (
31  DWORD dwProcessId,
32  DWORD dwThreadId,
33  DWORD dwContinueStatus
34 )
35 {
36  CLIENT_ID ClientId;
37  NTSTATUS Status;
38
39  ClientId.UniqueProcess = (HANDLE)dwProcessId;
40  ClientId.UniqueThread = (HANDLE)dwThreadId;
41
42  Status = DbgUiContinue(&ClientId, dwContinueStatus);
43
44  if(!NT_SUCCESS(Status))
45  {
46   SetLastErrorByStatus(Status);
47   return FALSE;
48  }
49
50  return TRUE;
51 }
52
53
54 /*
55  * @unimplemented
56  */
57 BOOL WINAPI DebugActiveProcess(DWORD dwProcessId)
58 {
59  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
60  return FALSE;
61 }
62
63
64 /*
65  * @unimplemented
66  */
67 BOOL WINAPI DebugActiveProcessStop(DWORD dwProcessId)
68 {
69  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
70  return FALSE;
71 }
72
73
74 /*
75  * @unimplemented
76  */
77 BOOL WINAPI DebugSetProcessKillOnExit(BOOL KillOnExit)
78 {
79  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
80  return FALSE;
81 }
82
83
84 /*
85  * @implemented
86  */
87 BOOL WINAPI IsDebuggerPresent(VOID)
88 {
89  return (WINBOOL)NtCurrentPeb()->BeingDebugged;
90 }
91
92
93 /*
94  * @unimplemented
95  */
96 BOOL WINAPI WaitForDebugEvent(LPDEBUG_EVENT lpDebugEvent, DWORD dwMilliseconds)
97 {
98  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
99  return FALSE;
100 }
101
102 /* EOF */