Page 1 of 1

Check Internet Connection State

Posted: Fri Jan 25, 2013 11:18 am
by mikKummerfeld
Hey Guys,

for all users who using the download-file command to check your internet connection.
Try this windows.api function (wininet.dll) which is the better way:

Code: Select all

~InstallAware Clipboard Data~
~Internet connection~
~ConnectionState: $internetresult$~
~Call DLL Function~
~Wininet.dll,InternetCheckConnectionA,bool,internetresult,"pointer to string",,"double word",1,"double word",0,$~
~Set Variable~
~Check internet connection state~