This is the code I'm using for checking my internet connection:
It is the only combination of parameters that works, ie, I have to give a valid URL, and I have to use the flag. Is it supposed to be like that? For compatibility, I wouldn't want to have to assume that I was specifying a valid URL. I know it's pedantic, but is there any way to avoid specifying a URL?Code:if (!InternetCheckConnection( "http://www.google.com" , FLAG_ICC_FORCE_CONNECTION , NULL ) )