This is my first time write bolgs in English, if sth you cannot understand, you can tell me all the mistakes and contact me.Welcome and thanks!
Be careful : everything you want to change must be a console process.At first I create a process to open the .txt , no matter how I change the struct STARTUPINFO the process gives me the same result. Then I change the initiation of szCommandline from "notepad" to
"cmd",then everything changs. Just as it said in the MSDN "For console processes, this is the title displayed in the title bar if a new console window is created. If NULL, the name of the executable file is used as the window title instead. This parameter must be NULL for GUI or console processes that do not create a new console window.
"