How to wait for a process to finish C++

后端 未结 1 1658
闹比i
闹比i 2020-12-17 10:06

I am creating a process with that code:

CreateProcess(NULL, \"process.exe\", NULL, NULL, TRUE, 0, NULL, NULL, %ini_processo, %processo_info);
相关标签:
1条回答
  • 2020-12-17 10:40

    You just call WaitForSingleObject on the handle CreateProcess returns.

    0 讨论(0)
提交回复
热议问题