How do I *really* stop a Windows Service?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Phill. W (P.A.Ward_at_o-p-e-n-.-a-c-.-u-k)
Date: 03/16/04


Date: Tue, 16 Mar 2004 17:54:40 -0000

I have a Windows Service, written in VB.Net.
I would like this service to be able to kill itself off if it is started,
for
example, on the wrong host server and to report this [failure] back to
the Service Control Manager.
So far, I've managed to stop it doing anything /useful/ but the process
obstinately remains until it's Stop'ed.

Any suggestions?

TIA,
    Phill W.



Relevant Pages

  • Re: Windows Service hangs
    ... the serial port and I actually have a GUI app that uses the same code as my ... Maybe I should have changed the emphasis of my question to how to kill ... > Whenever I write a windows service application, ... > listening to a serial port or sending data to it? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Service Control Manager Event ID 7034 & 7031
    ... I have a windows service which sends and receives data from sockets, ... is the Event ID 7031 from Service Control Manager. ... Logging Mechanism now I am not getting 7034 instead now it started to throw ... Most people here interpret "Messaging" as ...
    (microsoft.public.win32.programmer.messaging)
  • Windows service giving error.
    ... i have developed one windows service in c#.net. ... But when i try to open properties windows of that service throuch ... service control manager, ...
    (microsoft.public.dotnet.general)
  • Windows service Rights question
    ... In writing a Windows service with .NET, I'm noticing that the process for ... I just wrote a test service and I can kill the process for this ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Question about windows service
    ... Have you tried to use kill from the resource kit? ... Dennis ... Subject: Question about windows service ...
    (Focus-Microsoft)