64,281
社区成员
发帖
与我相关
我的任务
分享
STARTUPINFO si;
PROCESS_INFORMATION pi ; //进程信息:
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(si);
ZeroMemory(&pi, sizeof(pi));
for (;;)
{
HANDLE hTarget =FindWindow(NULL ,_T("Foxmail"));
if (!hTarget)
{
DWORD dwResult = CreateProcess(NULL,_T("C:\\Program Files\\Foxmail\\Foxmail.exe"),
NULL,NULL,NULL,NULL,NULL,NULL,&si,&pi);
}
else
{
}
Sleep(6000);
}