Hi,

I have a service ,which I can start/stop threw administration tools/services

What i don't know is how do I stop/kill the sevice from instide

I mean If I notice a fatal error I want to:
1. kill the service
2. write a message to the event viewer (of course before killing the service)

Can anyone pls tell me how do I do the 2 things?

Thanks in advance
avi

P.S I don't know it matters but I'm using Win2000 OS

Thanks