How to make GUI wait for windows service?

前端 未结 5 1413
轻奢々
轻奢々 2021-01-18 03:35

I wrote a windows service and a gui for it. Of course gui mainly depends on the service. Is there a way for gui to wait for the service? Sometimes I need to reload service c

5条回答
  •  温柔的废话
    2021-01-18 03:44

    Use a kernel Event object. When you start both apps, have them create or open a named Event object, then wait on it. The other can signal it, flipping the state thus allowing the other app to stop waiting and run.

提交回复
热议问题