Windows service

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

Guest

I want to detect Windows shutdown event in Windows service. How to do it?

Thanks in advance
KDV
 
KDV said:
I want to detect Windows shutdown event in Windows service. How to do it?

Thanks in advance
KDV

Override the OnShutDown event handler...
Check MSDN for ServiceBase.OnShutDown for more info.


Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top