Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #7577

Checking internet connection

From "Jozo" <racunalo@os.t-com.hr>
Newsgroups comp.lang.clipper.visual-objects
Subject Checking internet connection
Date 2014-12-04 22:56 +0100
Organization T-Com
Message-ID <m5ql5u$27t$1@ls237.t-com.hr> (permalink)

Show all headers | View raw


Hi all,

Has somebody source example for checking internet connection.
I used this example that shows internet connection although router is down.

_DLL FUNCTION InternetGetConnectedState(lpdwFlags AS PTR, dwReserved AS 
DWORD) AS LOGIC PASCAL:WinInet.InternetGetConnectedState
     //s Function declaration for WinInet.dll
     //p lpdwFlags, Dword passed as reference for return value from function
     //p dwReserved, reserved so pass 0

FUNCTION IsInternetConnected() AS LOGIC
    LOCAL lFuncResult AS LOGIC
    LOCAL nFlags AS DWORD
    lFuncResult := InternetGetConnectedState(@nFlags, 0)
    RETURN lFuncResult

I know that I could use maybe InternetCheckConnection and I found samples in 
VB and C. But, I am not familiarized with API and C...and of course...I need 
some help

Jozo

Back to comp.lang.clipper.visual-objects | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Checking internet connection "Jozo" <racunalo@os.t-com.hr> - 2014-12-04 22:56 +0100
  Re: Checking internet connection D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2014-12-05 00:32 +0100
    Re: Checking internet connection "Jozo" <racunalo@os.t-com.hr> - 2014-12-05 13:15 +0100
      Re: Checking internet connection "Jamal" <someone@example.com> - 2014-12-05 10:54 -0500
      Re: Checking internet connection "Valery N." <mustangsoftcom@gmail.com> - 2014-12-05 09:50 -0800
  Re: Checking internet connection "Valery N." <mustangsoftcom@gmail.com> - 2014-12-05 04:19 -0800

csiph-web