Re: Connection is established?
From: J French (erewhon_at_nowhere.com)
Date: 03/12/04
- Next message: Beowulf: "Createprocess Query"
- Previous message: Bob: "Help with Indy HTTP Get in a CGI?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 12 Mar 2004 09:21:03 +0000 (UTC)
On Tue, 9 Mar 2004 08:29:34 +0100, "Vladimir Perkic"
<vperkic@yahoo.com> wrote:
>Hi!
>
>I need to know whether Internet connection is established.
>Is there any API function for that?
>Or I should periodicaly check whether I can access some url?
There is a number of APIs that with URL.DLL and WININET.DLL
WinINet.dll comes with IE version 4 or higher
InetIsOffline ( url.dll )
InternetCheckConnection (wininet.dll)
InternetGetConnectedState (wininet.dll)
The wininet stuff is in the WinINet unit
- that is worth looking at
I can't find out whether/where InetIsOffline is declared in Delphi
It is probably worth checking it out on MSDN
<snip>
Returns TRUE if the local system is not currently connected to the
Internet. Returns FALSE if the local system is connected to the
Internet or if no attempt has yet been made to connect to the
Internet.
</snip>
It sounds a bit ambiguous
- Next message: Beowulf: "Createprocess Query"
- Previous message: Bob: "Help with Indy HTTP Get in a CGI?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|