I would like to be notified when the computer's network connection is established (has a valid IP address) and I would like to do this without polling. Is there a Windows API that can provide these notifications?
views:
35answers:
2
+2
A:
I would start with the System.Net.NetworkInformation.NetworkChange.NetworkAvailabilityChanged
event.
Also WMI events might be possible, fired on changes to the set of Win32_NetworkAdapter
or Win32_NetworkConnection
instances.
Richard
2010-08-25 15:11:42
A:
http://www.codeproject.com/KB/IP/usenetworklist.aspx
"How to use the Windows NLM API to get notified of new network connectivity"
BarsMonster
2010-08-25 15:12:10