How to tell if machine shutting down.

  • Thread starter Thread starter Simon Verona
  • Start date Start date
S

Simon Verona

I have a program that sits in the system tray and spawns off a number of sub
processes.

For some reason, when this is running on a system, Windows will not shutdown
without manually shutting it down.

Is there some way within my code that I can pick up that Windows wants to
shut down and then do an orderly shutdown of the processes?

Thanks in advance
Simon
 
Simon Verona said:
Is there some way within my code that I can pick up that Windows wants to
shut down and then do an orderly shutdown of the processes?

Handle 'SystemEvents.SessionEnding'.
 

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