Start external app with ShellExecuteEx and wait until it become initialized

前端 未结 3 428
轻奢々
轻奢々 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:18

    If your application has some custom initialization logic that doesn't run in UI thread then WaitForInputIdle might not help. In that case you need a mechanism to signal the previous app that you're done initializing.

    For signaling you can use named pipes, sockets, some RPC mechanism or a simple file based lock.

提交回复
热议问题