设置启动参数如下: si.wShowWindow = SW_NORMAL; si.dwFlags = STARTF_USESHOWWINDOW; createprocess第六个参数选择 CREATE_NEW_CONSOLE即可