Created
May 3, 2016 18:12
-
-
Save JoshVarty/3bc27c44295fe49fd0a39e3823bce16d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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