Re: How To Know If an Internet Connection is Active

Author: Andy Davies

Posted: 2006-06-29 at 03:04:29

Declare Integer InternetCheckConnection in Wininet.dll String Url, Long

Flags, Long Reserved

lnResult = InternetCheckConnection("http://leafe.com/",1,0)

?IIF(lnResult = 0,'NOT connected', 'Connected') && NOT connected

* Doesn't work through [our] firewall

* neither does:

!ping leafe.com

* wonder if it uses ping under the hood?

Andrew Davies  MBCS CITP

  - AndyD        8-)#

**********************************************************************

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.

This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.

Please contact internet.administrators@manchester.gov.uk with any queries.

**********************************************************************

©2006 Andy Davies