用CreateProcess创建线程,指定运行QQ.EXE
11 January 2011
操作系统作业。
STARTUPINFOsi;
PROCESS_INFORMATIONpi;
ZeroMemory( &si,sizeof(si));
si.cb = sizeof(si);
ZeroMemory( &pi,sizeof(pi));
if (!CreateProcess(NULL,
"D:\\Program Files\\Tencent\\QQ\\Bin\\QQ.exe",
NULL,
NULL,
FALSE,
0,
NULL,
NULL,
&si,
&pi)
)
{
cout << "CreateProcessfailed:" << GetLastError()<< endl;
}
cout << "CreateProcesssuccess" << endl;
return 0;
用SPY++查看
原文链接:用CreateProcess创建线程,指定运行QQ.EXE,转载请注明来源!
–EOF–