Creating uncontrollable windows service

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

Our client requirement is that the service must run and user should
not stop or uninstall the service at any cost - help me
 
J

John Phillips

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top