国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

使用CreateProcess()函數

2019-11-17 05:19:09
字體:
來源:轉載
供稿:網友

  以下是一個使用CreatePRocess()函數的例子:
void CreateChildProcessAndWaitUntilDone(const AnsiString& strCmdLine)
{

PROCESS_INFORMATION piprocInfo;
STARTUPINFO siStartInfo;

// Set up members of STARTUPINFO strUCture.
siStartInfo.cb = sizeof(STARTUPINFO);
siStartInfo.lpReserved = NULL;
siStartInfo.lpReserved2 = NULL;
siStartInfo.cbReserved2 = 0;
siStartInfo.lpDesktop = NULL;
siStartInfo.dwFlags = 0;


// Create the child process.
CreateProcess(

NULL,
strCmdLine.c_str(),
NULL, // process security attributes
NULL, // primary thread security attributes
0, // handles are inherited
0, // creation flags
NULL, // use parent's environment
NULL, // use parent's current Directory
&siStartInfo, // STARTUPINFO pointer
&piProcInfo); // receives PROCESS_INFORMATION

// Wait for the processs to finish
DWord rc = WaitForSingleObject(
piProcInfo.hProcess, // process handle
INFINITE);
}

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 滁州市| 宽甸| 英超| 金坛市| 兴山县| 桃源县| 拜城县| 通榆县| 哈巴河县| 鄂伦春自治旗| 天津市| 张北县| 沽源县| 海门市| 集贤县| 饶河县| 乐东| 新晃| 彭山县| 文山县| 安龙县| 那坡县| 邵东县| 武穴市| 宁德市| 北票市| 渭源县| 新邵县| 桑日县| 和顺县| 广州市| 建平县| 永安市| 丰顺县| 资阳市| 博乐市| 竹山县| 南川市| 福州市| 江达县| 泊头市|