views:

89

answers:

1

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.

+2  A: 

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

flokra
Brilliant - that's great, thanks.
John