update for HEAD-2003050101
[reactos.git] / lib / kernel32 / debug / break.c
diff --git a/lib/kernel32/debug/break.c b/lib/kernel32/debug/break.c
new file mode 100644 (file)
index 0000000..c7e5aa3
--- /dev/null
@@ -0,0 +1,29 @@
+/* $Id$
+ *
+ * COPYRIGHT:       See COPYING in the top level directory
+ * PROJECT:         ReactOS system libraries
+ * FILE:            lib/kernel32/debug/debugger.c
+ * PURPOSE:         DebugBreakProcess()
+ * PROGRAMMER:      KJK::Hyperion <noog@libero.it>
+ */
+
+/* INCLUDES ******************************************************************/
+
+#include <k32.h>
+
+/* FUNCTIONS *****************************************************************/
+
+BOOL WINAPI DebugBreakProcess(HANDLE Process)
+{
+ NTSTATUS nErrCode = DbgUiIssueRemoteBreakin(Process);
+ if(!NT_SUCCESS(nErrCode))
+ {
+  SetLastErrorByStatus(nErrCode);
+  return FALSE;
+ }
+
+ return TRUE;
+}
+
+/* EOF */