When internet connection losts on pc (But local LAN works correctly and neighbour computers accessible), The Windows 7 detects internet connection losts.
Which algorithm used by Windows to detect internet connectivity?
Is there any API to use this feature in my applications?
Note: InetIsOffline API always returns “internet is connected”! Even when my network cable is not connected to my pc.
Windows 7 pings a Microsoft server. If it gets a response, internet is on.
More detailed (wordy) explanation here: http://blog.superuser.com/2011/05/16/windows-7-network-awareness/