I am coding on a native app that uses CreateProcess
to launch a GUI based WPF application. In the lpCommandLine
parameter, I am also including the command line info along with the application name. Incidently the WPF application to launch also adds a newline to console window whenever any command line parameters are sent to it. Due to this, CreateProcess()
is relaunching the application every time I close it. Any help how to solve this issue?
I also searched several links like the one below but nothing really helps to solve my issue. Can one executable be both a console and GUI application?`