RAS\_CreateModemConnection
VB Scripting Library > RAS (Remote Access Services) functions
Description
Section titled “Description”Creates a new dial-up connection. A modem is required.
The function fails if you specify a wrong device name
Syntax
Section titled “Syntax”RAS_CreateModemConnection(sConnectionName,sCountryCode,sAreaCode,sTelephoneNumber,sDeviceName,sDialUpType) As Boolean
Parameters
Section titled “Parameters”sConnectionName (String)
A friendly name for the connection
sCountryCode (String)
Prefix country code. Empty string can be specified
sAreaCode (String)
Prefix area code. Empty string can be specified
sTelephoneNumber (String)
Telephone number to be dialed
sDeviceName (String)
Name of the modem, e.g. ZyXEL Omni 56K
sDialUpType (String)
Dial-Up type e.g. PPP or Slip
Example
Section titled “Example”VBScript
If bStatus Then bStatus = RAS_CreateModemConnection("ACME", "", "", "80808080", "Standard 28800 bps Modem", "PPP")Related functions
Section titled “Related functions”RAS_IsRasInstalled RAS_GetConnectionPath RAS_SetTCPIPProperties RAS_SetUIProperties RAS_SetVPNSecurityProperties RAS_DeleteConnection