I'm developing an application on win2k, and I need to make it aware of the network state oven an ADSL connection. The application must tell the operator when/if the network is out (unplugged cable, router down or ISP down).

A brute-force approach would be to ping a remote machine periodically, but I'd rather use some native windows event that does the job (i.e. checks the network state) for me.

I've come across NetworkAvailabilityChanged, but I'm not sure whether it only tells that the cable has been disconnected, or if it tells if the ISP fails.

Can anyone help me out on:
1) is NetworkAvailabilityChanged event supported by win2k ?
2) are there any other nifty ways of checking whether my connection is up&running?

Thanks