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]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to