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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With