/*_In_opt_ HWND hwnd,
_In_opt_ LPCSTR lpOperation, //操作
_In_ LPCSTR lpFile, //打开的文件
_In_opt_ LPCSTR lpParameters,
_In_opt_ LPCSTR lpDirectory,
_In_ INT nShowCmd*/ //显示模式
ShellExecuteA(0, "open", "mspaint", 0, 0, 1);
while(1){
ShellExecuteA(0, "open", "mspaint", 0, 0, 0);0表示隐藏窗口 3表示最大化,6表示最大化
}
打开一个网页
ShellExecuteA(0,"open", "www.baidu.com", 0, 0, 1);