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.
--
John Phillips
MVP - Windows SDK
"Sankar-R" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> (E-Mail Removed) (Sankar-R) wrote in message
news:<(E-Mail Removed)>...
> > 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