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~
~MessageBox~
~{0456FAE6-C41B-4A9A-B498-615908D96617}~
~Internet connection~
~ConnectionState: $internetresult$~
~0~
~1~
~~
~Call DLL Function~
~{0858B37D-C134-4983-9E85-4675650C82B2}~
~Wininet.dll,InternetCheckConnectionA,bool,internetresult,"pointer to string",http://www.google.com,"double word",1,"double word",0,$~
~mIDEFunc.dll\mEXEFunc.dll~
~Set Variable~
~{C279442D-4A4A-45D2-8F6E-124AE63A9F97}~
~internetresult$MYAH$MYAH$FALSE~
~false~
~Comment~
~{AA251F4D-0670-414E-A6C8-20DEEC2C0ACB}~
~Check internet connection state~