I need a way to programmatically determine the availability of the Internet. I am currently using Ping to constantly listen to an internet site.
But it seems that Windows 7, though, determines the availability of the Internet in some other way. If the computer is online, the earth icon is displayed on the network interface icon in the system tray.
Question: is there a standard way for Win32 to check online status, win an event or something like that, and if so, how to use it with C #?
source share