which event will be fired if Windows shutdown

  • Thread starter Thread starter Mullin Yu
  • Start date Start date
M

Mullin Yu

i want to a Window application, and which event will be fired if Windows
shutdown without closing my Window application?

i want to to capture the event and do something.

thanks!

regards,
mullin
 
Take a look at the SystemEvents class in the Microsoft.Win32 namespace

The event you're looking for is SessionEnding
 
Back
Top