#include <Windows.h>
#include <stdio.h>
#define IE L"C:\\Program Files\\Internet Explorer\\iexplore.exe"
#define CMD L"open http://www.baidu.com/"
int main()
{
STARTUPINFO si;
GetStartupInfo(&si);
PROCESS_INFORMATION pi;
si.dwFlags = STARTF_USESHOWWINDOW;
si.wShowWindow = SW_HIDE;
if (!CreateProcess(IE, CMD, NULL, NULL, FALSE, CREATE_NO_WINDOW,
NULL, NULL, &si, &pi)) {
wprintf(L"CreateProcess error:%d\n", GetLastError());
return 0;
}
Sleep(5000);
TerminateProcess(pi.hProcess, 0);
return 0;
}
360不会发出警报。