How to make GUI wait for windows service?

前端 未结 5 1310
轻奢々
轻奢々 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 04:05

    I'd probably spawn a seperate thead to simply poll and see when your service controller status has changed, when the change occurs kill this thread. Then simply re spawn the thread when you need to start re-poll

    Darknight

提交回复
热议问题