Attempts a dial-up connection using a specified phonebook entry and returns a handle to the connection on success.
Declaration
Function RASConnect (PhonebookEntry As Variant) As Integer
Description
Use RASConnect to attempt to establish a dial-up connection using the phonebook entry name supplied in PhonebookEntry parameter.
On success, RASConnect returns a handle to a RAS object. RASConnect returns 0 if the connection fails. On failure, use RASLastErrorCode and RASLastErrorText for information about why the method failed.