Results 1 to 6 of 6

Thread: How to specify the access number to dial?

  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.

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: How to specify the access number to dial?

    Hey,

    As far as I can see, you would have a number of connections established on your machine, and you would pass in the name of the connection that you wanted to use.

    http://support.microsoft.com/default...b;en-us;821770

    Hope that helps!!!

    Gary

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 2008
    Posts
    26

    Re: How to specify the access number to dial?

    Quote Originally Posted by gep13
    Hey,

    As far as I can see, you would have a number of connections established on your machine, and you would pass in the name of the connection that you wanted to use.

    http://support.microsoft.com/default...b;en-us;821770

    Hope that helps!!!

    Gary

    I am aware of this code. I am aware that I can specify a number within Windows Dialup networking.

    However, I need to be able to specify or change the number to dial within the application. I am aware that I can change it manually.

  4. #4
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: How to specify the access number to dial?

    Windows Networking wasn't really designed to be application specific so I'm not aware of any code that can do that. I think what you should do is look into creating the connection within dial-up networking. The MSN web browser does exatly this; it creates a connection in Windows' dial-up networking section then uses it to connect.

    Not sure if that really helps though, heh...
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Oct 2008
    Posts
    26

    Re: How to specify the access number to dial?

    Is there any way I can dial and connect to the internet any other way? For example can I do something with the com port?

  6. #6
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: How to specify the access number to dial?

    sure you could dial the modem, but how would you then switch the connection to the systems networking software.

    however. look on the internet for the dos commands
    rasdial
    rasphone
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

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