Creating uncontrollable windows service

  • Thread starter Thread starter Sankar-R
  • Start date Start date
S

Sankar-R

Dear all,
I need to code a windows service which can not be controlled by
service control manager(like Remote Procedure Call (RPC) where we
cannot stop,start and we are not able to change to manual or
disabled)... Please guide me

Regards
Sankar
 
Dear all,
I need to code a windows service which can not be controlled by
service control manager(like Remote Procedure Call (RPC) where we
cannot stop,start and we are not able to change to manual or
disabled)... Please guide me

Regards
Sankar

Our client requirement is that the service must run and user should
not stop or uninstall the service at any cost - help me
 
This is impossible. Anybody with the proper permissions will be able to:

- Remove your service by editing registry keys
- Change service parameters (automatic, manual, recovery options, etc.) by
editing the registry
- Call TerminateProcess() on your service (or use an appropriate process
killer app)

The only way to do this is to deny users the permissions I've just listed.
 
Back
Top