Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] - Check Internet Connection (wininet.dll)

Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 18th Mar 2014 18:31
This snippet shows how to use wininet.dll (a Windows system DLL) to check if your user's computer has an internet connection.

Note that you should NOT use it in a loop as I have done. If a connection doesn't exist, it will block your program for about 15 seconds while it times out.

Chris Tate
DBPro Master
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 7th Apr 2014 10:16

Years of Service
User Offline
Joined: 11th Mar 2012
Location: The Shire
Posted: 15th May 2014 13:15
Nice one.

Login to post a reply

Server time is: 2023-10-03 03:00:16
Your offset time is: 2023-10-03 03:00:16