I need a way to force my application (named watchdog) to remain operative even if I close it intentionally. This application, at the same time, checks for the activity of other two applications (assistance control and data transfer). Whenever one of those two applications gets closed, watchdog is ready to make it operative once again. But when watchdog is down, none is operative anymore. How can I do that? Is there a windows service that can cope with that mission?
Thanx for your help!
Thank you all guys!
After a lot of trial and error I could finally have my watchdog application giving persistent control over the operation of 'Assistance Control' and 'Data Transfer' windows applications. It actually made no sense to have two windows applications being controlled by a third windows application, mainly because of their own nature - they do exist to provide interaction, so it is OK for someone to stop watchdog whenever he wants. That's the natural way it goes. Taking Simon's suggestion into account, I decided to pass control to a new level by developing my watchdog now as a windows service. I know this might be not the best way as the service itself is communicating with GUI-based applications, not recommended at all. I set my watchdog service to allow desktop interaction and now nothing is stopping it from staying alive, unless, of course, a mean user stops the service.
If someone ever needs persistent control like this, I think this might be a well-defined and clear solution.