DebugBreakProcess function Null safety kernel32

int DebugBreakProcess(
  1. int Process
)

Causes a breakpoint exception to occur in the specified process. This allows the calling thread to signal the debugger to handle the exception.

BOOL DebugBreakProcess(
  HANDLE Process
);

Implementation

int DebugBreakProcess(int Process) {
  final _DebugBreakProcess = _kernel32.lookupFunction<
      Int32 Function(IntPtr Process),
      int Function(int Process)>('DebugBreakProcess');
  return _DebugBreakProcess(Process);
}