none
Forbit the windows service from being stopped by the user RRS feed

  • Question

  • Hello. Kasperksy Anti-Virus Software installes a service into the system, that is immpossible to stop during the system operation. How is it possible to create a windows service, that will have the "Stop" button disabled in the Services Management snap-ins in Windows?

    Thank you in advance.
    Thursday, July 24, 2008 12:22 PM

Answers

  • From memory, I believe you would set the CanStop property to false on the service.

     

    Let me know if you need any more information.

    Thursday, July 24, 2008 12:49 PM

All replies

  • From memory, I believe you would set the CanStop property to false on the service.

     

    Let me know if you need any more information.

    Thursday, July 24, 2008 12:49 PM
  • Yep, it is immportant to set it in the constructor, not in OnStart() method. Thanks!
    Thursday, July 24, 2008 1:24 PM
  • But for some reason, it is immposible to kill Kaspersky as a process. However, it is possible to kill the service that was set with CanStop = false. Still I wonder how did they achieve such a die hard process.
    Thursday, July 24, 2008 2:58 PM