public void ContinueExecution() { // NO-OP if (State == Win32ProcessState.Running) { return; } Debug.Assert(suspendedThread != null); State = Win32ProcessState.Running; WinApi.ContinueDebugThread(suspendedThread, true); suspendedThread = null; }
private void SuspendThread(Win32Thread thread) { Debug.Assert(suspendedThread == null); State = Win32ProcessState.Suspended; suspendedThread = thread; }