Detect logoff or shutdown

  • Thread starter Thread starter Jerry Camel
  • Start date Start date
J

Jerry Camel

How do you detect when a system is being logged off or shutdown? In VB 6
there was a QueryUnload event that would work if you had a form, but I'm
running in a Sub Main scenario... I can't find any events to code for... Is
there a way to register with the system to be notified of the
logoff/shutdown? Thanks.

Jerry
 
Back
Top