Start external app with ShellExecuteEx and wait until it become initialized

前端 未结 3 429
轻奢々
轻奢々 2020-12-31 18:10

I have an application which needs to run several other applications in chain. I am running them via ShellExecuteEx. The order of running each of the apps is ver

3条回答
  •  伪装坚强ぢ
    2020-12-31 18:31

    You can probably achieve what you need by calling WaitForInputIdle() on each process handle returned by ShellExecute().

    Waits until the specified process has finished processing its initial input and is waiting for user input with no input pending, or until the time-out interval has elapsed.

提交回复
热议问题