RedUpdate™ Method - ConnectToInternet

See Also Examples

This method allows the developer to connect to the Internet, optionally forcing a dial connection.

Syntax:

object.ConnectToInternet ( bForceConnection )

Part Description

Object an object expression that evaluates to an
RedUpdate™ object
bForceConnection A BOOLEAN expression specifying
if RedUpdate should cause Dialup Networking to establish a connection.

If this value is false, RedUpdate will connect to a SOCKS or Proxy

if available, or make use of an existing Dialup connection.

Remarks

If the Internet is connected already, either via a direct network connection (such as Cable modem, DSL, or other), a dial-up network, or certain SOCKS wrappers (such as Microsoft® Windows Proxy Client), this function will return TRUE.

If the bForceConnection is FALSE, and one of the above connections is not available, RedUpdate will look for a SOCKS compliant connection. If this connection type is available, then RedUpdate will return TRUE, otherwise it will return FALSE.

If the parameter bForceConnection is TRUE, and one of the above connections is not available, RedUpdate will attempt to dial the DUN entry specified in the connection manager. If the connection manager has not been used, then an attempt to dial the default DUN entry is made. If either of these attempts is successful, the return value is TRUE, otherwise the return value is FALSE.

Return Type

BOOLEAN