Internet connection:
InternetAutodial
InternetCheckConnection
InternetGetConnectedStateEx
WinHttpConnect
Retrieving the state of your Internet connection