If I were to write a console application that starts another console application as a new process and uses the default values โโof "UseShellExecute" and "CreateNoWindow", the result is a new command window next to the console window
UseShellExecute=true and CreateNoWindow=false
Now, if I use the following, a new window will not be created, but the output of the running process will appear in the application window that launched it:
UseShellExecute=false and CreateNoWindow=false
And if I used the following, neither a new window would be created, nor the output of the running process would appear in the window of the launching application:
UseShellExecute=false and CreateNoWindow=true
But it seems that "CreateNoWindow" does not work when UseShellExecute = true, and what role does "CreateNoWindow" play when UseShellExecute = true? Is it used only when the application launched as a new process is a Forms application?
source share