开发者

Qt application dependent on windows service

开发者 https://www.devze.com 2023-03-29 11:54 出处:网络
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.

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

精彩评论

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