Arnas Ambrasas Arnas Ambrasas - 4 months ago 8
C++ Question

Is it possible to launch command line application without displaying its window?

I have an command line application that has

wmain()
entry point. And I launch it from another app using
ShellExecuteEx
function. If I set
shellExecuteInfo.nShow = SW_HIDE
it still pops out. Is it somehow possible to not show it at all?

Answer

Use CreateProcess and pass the CREATE_NO_WINDOW flag.

Comments