tags:

views:

35

answers:

2

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?

+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
A: 

http://www.codeproject.com/KB/IP/usenetworklist.aspx

"How to use the Windows NLM API to get notified of new network connectivity"

BarsMonster