#include<windows.h>
int main()
{
STARTUPINFO si; //进程启动时需要初始化的结构
PROCESS_INFORMATION pi; //进程启动后的有关信息
si.cb = sizeof(STARTUPINFO);
GetStartupInfo(&si);
si.wShowWindow = SW_SHOW;//这里设置窗口为显示,SW_HIDE为隐藏窗口
si.dwFlags = STARTF_USESHOWWINDOW | STARTF_USESTDHANDLES;
CreateProcess("C://Program Files//Internet Explorer//IEXPLORE.EXE",
NULL,NULL,NULL,TRUE,NULL,NULL,NULL,&si,&pi);
return 0;
}
![](https://img2024.cnblogs.com/blog/35695/202408/35695-20240825082459112-376424429.jpg)