o.InternetDial(llUnattended,lcConnection)
lcConnection
Optional - Name of the Dial-up Networking connection that is to be dialed. If left out uses the default connection.
This method always displays a user interface with dial progress and the ability to cancel dialing.
This method returns a connection handle in nRasHandle which is required in the call to InternetHangup to disconnect. You either have to keep the instance of this object alive or store the nRasHandle value somewhere permanent to assure that the connection can be terminated programmatically. Note that you can still disconnect the connection using the standard Windows Dialup dialogs and lists, but you willl thereby invalidate the handle.
Overloads: