Skip to content

Instantly share code, notes, and snippets.

@JoshVarty
Created May 3, 2016 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoshVarty/3bc27c44295fe49fd0a39e3823bce16d to your computer and use it in GitHub Desktop.
Save JoshVarty/3bc27c44295fe49fd0a39e3823bce16d to your computer and use it in GitHub Desktop.
private static CorProcess StartProcess(CorDebugger debugger, string programName)
{
var currentDirectory = Directory.GetCurrentDirectory();
//const CREATE_NO_WINDOW = 0x08000000 Use this to create process without a console
var corProcess = debugger.CreateProcess(programName, "", currentDirectory, (int)CreateProcessFlags.CREATE_NEW_CONSOLE);
corProcess.Continue(outOfBand: false);
return corProcess;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment