Causes the modem to automatically dial the default Internet connection.
=
Object.AutoDialInternet
Parameter
-
lnType
-
Connect type
Type |
Numeric |
Direction |
Input |
Can be one of the following:
Value | Description |
INTERNET_AUTODIAL_FORCE_ONLINE
| Forces an online Internet connection. |
INTERNET_AUTODIAL_FORCE_UNATTENDED
| Forces an unattended Internet dial-up. |
INTERNET_AUTODIAL_FAILIFSECURITYCHECK
| Causes InternetAutodial to fail if file and printer sharing is disabled for Windows 95 or later. |
Assumed from MSDN.
The return value is .T.
if is connected to internet or .F.
is not.
Source Code
LPARAMETERS lnType
LOCAL lnHWNDHandle, fResult
IF This.LoadAPIFuncs() != ERROR_SUCCESS
RETURN .F.
ENDIF
IF TYPE(lnType) != "N"
RETURN .F.
ENDIF
=This.BeforeAutoDialInternet(lnType)
lnHWNDHandle = 0
fResult = InternetAutodial(lnType, lnHWNDHandle)
=This.GetExtendedError()
=This.AfterAutoDialInternet(lnType,fResult)
RETURN fResult # 0