Re: Windows service Rights question
From: Brian Gideon (briangideon_at_gmail.com)
Date: 09/30/04
- Next message: William Stacey [MVP]: "Re: Decompiler.NET reverse engineers your CLS compliant code"
- Previous message: Coldstart: "How to Marshal AnsiBstr SafeArrays in C# with PInvoke"
- In reply to: Steve Long: "Windows service Rights question"
- Next in thread: Steve Long: "Re: Windows service Rights question"
- Reply: Steve Long: "Re: Windows service Rights question"
- Messages sorted by: [ date ] [ thread ]
Date: 30 Sep 2004 12:51:09 -0700
Steve,
I read through this several times, but I'm still not confident that I
understand what you mean. A user with administrative privledges on a
box will always be able to stop a service via the service control
manager or kill any process associated with a service on that box.
Though killing a process associated with service running under a
different login will require functionality that the task manager does
not provide, it is always possible. Normal users are unable stop a
service or kill a process associated with a service. If the process
associated with a service does not terminate after stopping the service
in the service control manager then there is a problem with your code.
Brian
Steve Long wrote:
> In writing a Windows service with .NET, I'm noticing that the process
for
> some services can not be killed with specifically stopping the
service. If
> you try to kill the process with, say task manager, you get an access
denied
> message. I just wrote a test service and I can kill the process for
this
> service without actually stopping the service. Can someone tell me
how to
> keep the process for my service from being killed without actually
stopping
> the service?
>
> I appreciate any insight into this thread.
>
> Thanks
> Steve
- Next message: William Stacey [MVP]: "Re: Decompiler.NET reverse engineers your CLS compliant code"
- Previous message: Coldstart: "How to Marshal AnsiBstr SafeArrays in C# with PInvoke"
- In reply to: Steve Long: "Windows service Rights question"
- Next in thread: Steve Long: "Re: Windows service Rights question"
- Reply: Steve Long: "Re: Windows service Rights question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|