How can I prevent users from tampering with, stopping or crashing a Windows Service that is doing work in the background that may take a while to complete?
Upon receiving a stop request, the service should wait until the work is complete before stopping.
There is the CanStop
flag for services, but I'm not sure how to respond to the OnStop message. And if the user does try to crash the service, how can I prevent further tampering?
Edit: Generalised question from parental control to any background process.