等待程序结束

代码
WaitForSingleObject(hProcess,INFINITE);

Read More