private void ExitCmdProcess() { // Release attachment to the child process console. WinCon.FreeConsole(); this.UIRoot = null; if (this.job != IntPtr.Zero) { WinBase.TerminateJobObject(this.job, 0); } this.job = IntPtr.Zero; }
private void ExitProcess() { Globals.SweepAllModules(this.context); // Release attachment to the child process console. WinCon.FreeConsole(); this.UIRoot = null; if (this.job != IntPtr.Zero) { WinBase.TerminateJobObject(this.job, 0); } this.job = IntPtr.Zero; }