Mel,
I'm thinking that pinging will give a slow response when not connected...is this for a situation where you *know* there is no static connection? If so, I would experiment with InternetGetConnectedStateEx (or InternetGetConnectedState), and use the ping after you get a positive result. I believe the danger of the InternetGetConnectedState functions is a false positive, but not a false negative.
IOW, if InternetGetConnectedState returns a quick result saying you are not connected, I would think it would be correct.
Does that make sense?
>>It would do the check, but I don't think it would prompt to dial if not connected. In that same thread, Rodd went the wwIPStuff route, because apparently it will dial if necessary.<
>
>Thanks Steve... in this situation I wouldn't want it to dial.
>
>Mel Cummings
Steve Gibson