Author: Jack Skelley
Posted: 2006-06-28 at 13:18:08
George:
Here is one more way to check...
LOCAL lnDst, lnHop, lnRTT
*
DECLARE INTEGER GetRTTAndHopCount IN Iphlpapi;
INTEGER DestIpAddress, ;
LONG @HopCount, ;
INTEGER MaxHops, ;
LONG @RTT
*
DECLARE INTEGER inet_addr IN ws2_32 STRING cp
*
lnDst = inet_addr("216.109.117.108") && Yahoo IP returns
lnHop = 0
lnRTT = 0
*
IF GetRTTAndHopCount(lnDst, @lnHop, 50, @lnRTT) = 0
*You are NOT currently connected to the internet
CLEAR DLLS GetRTTAndHopCount, inet_addr
return .f.
ELSE
*You are connected to the internet
CLEAR DLLS GetRTTAndHopCount, inet_addr
return .t.
ENDIF
Regards,
Jack Skelley
G Gambill wrote:
> How can I determine if an Internet Connection is active for PostCast
> Server.
>
> I thought about
>
> oIE = createobject( 'internetexplorer.application')
> oIE.Navigate2( "http://www.yahoo.com" <http://www.yahoo.com/>)
>
>
> but can't figure out how to programatically test if that was successful.
>
> TIA
>
> George
>
>
> --- StripMime Report -- processed MIME parts ---
> multipart/alternative
> text/plain (text body -- kept)
> text/html
> ---
>
>
[excessive quoting removed by server]