Is there a native Windows API which does the same as the .NET System.Net.NetworkInformation.NetworkChange class?
Basically I'm looking for something to report changes to connectivity and IP address changes.
Is there a native Windows API which does the same as the .NET System.Net.NetworkInformation.NetworkChange class?
Basically I'm looking for something to report changes to connectivity and IP address changes.
NotifyAddrChange from the IP Helper API should be what you're looking for.
To check if the computer is connected to a network, you might want to use IsNetworkAlive.
If you're developing for Windows Vista (or newer) you propably want to take a look at the Network List Manager.
HTH, flokra