c7e5aa33915c709cca9194943e0703ec7bfc83a6
[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 BOOL WINAPI DebugBreakProcess(HANDLE Process)
17 {
18  NTSTATUS nErrCode = DbgUiIssueRemoteBreakin(Process);
19  
20  if(!NT_SUCCESS(nErrCode))
21  {
22   SetLastErrorByStatus(nErrCode);
23   return FALSE;
24  }
25
26  return TRUE;
27 }
28
29 /* EOF */