Quantcast
Channel: Flexera Community Forums
Viewing all articles
Browse latest Browse all 4553

Check if Internet Connection Available

$
0
0
Hello,
I am trying to check if PC could connect to Internet.


The check function Wininet.InternetCheckConnectionA does not come back.
What could be wrong?

Has anybody an idea how to test Internet Connection?

Regards



#define FLAG_ICC_FORCE_CONNECTION 0x01
prototype BOOL Wininet.InternetCheckConnectionA(BYREF STRING, NUMBER, NUMBER);

UseDLL(WINSYSDIR ^ "\\Wininet.dll")

bInternetAvailable = Wininet.InternetCheckConnectionA("WWW.google.com", FLAG_ICC_FORCE_CONNECTION, 0);

Viewing all articles
Browse latest Browse all 4553

Trending Articles