Stopping a Windows Service (VB.Net)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I have developed a Windows Service in VB.Ne

This Service processes some mails

If someone Stops the Service form the MMC I want to finish of my Processing

Anyone know how I can achieve this

Thanks
C.
 
Hi,

When you create a service in .NET you get OnStart and OnStop events.
When you get the OnStop event then cleanup your processing and only return
from that event when you are finished processing.

Regards,

--

Nico Debeuckelaere

ND-Sign BVBA (Microsoft Certified Partner since 2004)
URL: http://www.nd-sign.com
== ND-Sign, Designed for you ==
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
Back
Top