Results 1 to 6 of 6

Thread: How to specify the access number to dial?

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2008
    Posts
    26

    How to specify the access number to dial?

    I am using the following code to dialup however I would like to be able to specify the number to dial programatically. Is this possible? I've searched msdn.

    vb.net Code:
    1. Private Sub DialUp()
    2.         Dim DResult As Long
    3.         DResult = InternetDial(0, "My Connection", DialUpOptions.INTERNET_DIAL_UNATTENDED, mlConnection, 0)
    4.  
    5.         If (DResult = ERROR_SUCCESS) Then
    6.             Me.Text = "Dialup connected successfully"
    7.         Else
    8.             Me.Text = "Dialup unsuccessful"
    9.         End If
    10.     End Sub

    Right now I have to specify the number manually via Windows XP Dial Up Networking. I would like to be able to specify the number at runtime.

    Can it be changed within the registry?
    Last edited by sebex; Oct 16th, 2008 at 10:56 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width