开发者

Qt application dependent on windows service

My Qt application is dependent on windows bonjour service. If the application is launched at login, it sometimes is not able to register with bonjour probably as the service is not yet up completely. I need to restart the service manually to make it work. Is there a way to specify the dependent services of my ap开发者_运维技巧plication which can take care of this or may be I just check the status of the service and wait till it's up.

Any pointer is appreciated.

Soumya


You can check with QueryServiceStatus. If you need to start it, you can then wait with NotifyServiceStatusChange until the service has started.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜