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;

IMG-THUMBNAIL

用SPY++查看

IMG-THUMBNAIL

原文链接:用CreateProcess创建线程,指定运行QQ.EXE,转载请注明来源!

EOF

欢迎加微信交流与吐槽



本站总访问量次; 本站访客数人次; 本文总阅读量次;