471,627 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

System shutdown notification

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

VJ
Jan 19 '06 #1
1 1833

"VJ" <vi********@yahoo.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
| 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.
Jan 19 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by rbt | last post: by
2 posts views Thread by Andy | last post: by
4 posts views Thread by Robert W. | last post: by
3 posts views Thread by geskerrett | last post: by
2 posts views Thread by Sin Jeong-hun | last post: by
3 posts views Thread by Bill Davidson | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.