Re: Connection is established?

From: J French (erewhon_at_nowhere.com)
Date: 03/12/04


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



Relevant Pages

  • Re: What does the "Configure email and Internet Connection Wizard"
    ... > the CEICW does (listed under "Configure Email and Internet Connection ... > Configure E-mail and Internet Connection Wizard is designed to correctly ... > configure settings for your network, firewall, secure Web site, and e-mail ...
    (microsoft.public.windows.server.sbs)
  • Re: What does the "Configure email and Internet Connection Wizard"
    ... Understanding the Configure E-mail and Internet Connection WizardThe ... Configure E-mail and Internet Connection Wizard is designed to correctly ... configure settings for your network, firewall, secure Web site, and e-mail ...
    (microsoft.public.windows.server.sbs)
  • RE: how can i know if a certain dial up is connected
    ... Microsoft Windows Internet (WinINet) API provides. ... describes how to initiate an Internet connection and how to end an Internet ... 'Local system uses a LAN to connect to the Internet. ...
    (microsoft.public.vb.general.discussion)
  • Re: Serious Security Issue in Windows XP SP2s Firewall
    ... Subject: AW: Serious Security Issue in Windows XP SP2's Firewall ... If you update a WinXP SP-1 with enabled Internet ... Connection Firewall ...
    (Focus-Microsoft)
  • Re: Working LAN, but no client Internet -Again
    ... For symptoms that concern Internet connectivity, ... My laptops have always been able to make it out and ping everything on my ... I can get the network connection details and they are the ...
    (microsoft.public.windowsxp.network_web)