When a user disconnects their wire to the network or those who use RAS disconnects - I need for my Winforms app to be informed the moment it happens. What is the best way to code this in C# ? Any examples or code snippets?

Re: Network Detection by AlexS

AlexS
Wed May 12 14:38:21 CDT 2004

Demetri,

possibly you have to take a look at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/receiving_connection_notifications.asp
and
http://msdn.microsoft.com/msdnmag/issues/02/08/SENS/default.aspx

Otherwise you might need to poll SystemInformation.Network.

HTH
Alex

"Demetri" <anonymous@discussions.microsoft.com> wrote in message
news:A2CF7844-F411-4E06-B6DB-B12697257CD3@microsoft.com...
> When a user disconnects their wire to the network or those who use RAS
disconnects - I need for my Winforms app to be informed the moment it
happens. What is the best way to code this in C# ? Any examples or code
snippets?