update for HEAD-2003091401
[reactos.git] / lib / kernel32 / debug / break.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:         DebugBreakProcess()
7  * PROGRAMMER:      KJK::Hyperion <noog@libero.it>
8  */
9
10 /* INCLUDES ******************************************************************/
11
12 #include <k32.h>
13
14 /* FUNCTIONS *****************************************************************/
15
16 /*
17  * @implemented
18  */
19 BOOL WINAPI DebugBreakProcess(HANDLE Process)
20 {
21  NTSTATUS nErrCode = DbgUiIssueRemoteBreakin(Process);
22  
23  if(!NT_SUCCESS(nErrCode))
24  {
25   SetLastErrorByStatus(nErrCode);
26   return FALSE;
27  }
28
29  return TRUE;
30 }
31
32 /* EOF */