Soumya Das
Soumya Das

Reputation: 1665

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 application 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

Upvotes: 0

Views: 683

Answers (1)

MSalters
MSalters

Reputation: 180303

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

Upvotes: 1

Related Questions