GetConnectedState Method
Class: FTP_SERVICE
Returns the current type of internet connection..
=
Object.GetConnectedState
()
Return value Integer
Current Connection Type.
ValueDescription
INTERNET_CONNECTION_MODEM Local system uses a modem to connect to the Internet.
INTERNET_CONNECTION_LAN Local system uses a local area network to connect to the Internet.
INTERNET_CONNECTION_PROXY Local system uses a proxy server to connect to the Internet.
INTERNET_CONNECTION_MODEM_BUSY No longer used.
Possibly other codes could be returned. Assumed from MSDN.
See also
Expand/Collapse source code of procedure GetConnectedState Source Code
      LOCAL fResult, lnConnectionState

      IF This.LoadAPIFuncs() != ERROR_SUCCESS
         RETURN -1
      ENDIF

      lnConnectionState = 0

      =This.BeforeGetConnectedState()
      fResult = InternetGetConnectedState(@lnConnectionState, 0)
      =This.GetExtendedError()
      =This.AfterGetConnectedState(fResult,lnConnectionState)
      RETURN IIF(fResult = 0,-1,lnConnectionState)