System shutdown notification

  • Thread starter Thread starter VJ
  • Start date Start date
V

VJ

How do I bn a notification in my program that windows operating system is
shutting down or restarting?

VJ
 
| How do I bn a notification in my program that windows operating system is
| shutting down or restarting?
|
| VJ
|
|

Depends on the version of the framework you are running.
On v2 you can use the SystemEvents class (on v1 there is only the Shutdown
event AFAIK)
else you have to use System.Management and WMI.

Willy.
 
Back
Top