|
-
Oct 16th, 2008, 10:52 PM
#1
Thread Starter
Junior Member
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:
Private Sub DialUp()
Dim DResult As Long
DResult = InternetDial(0, "My Connection", DialUpOptions.INTERNET_DIAL_UNATTENDED, mlConnection, 0)
If (DResult = ERROR_SUCCESS) Then
Me.Text = "Dialup connected successfully"
Else
Me.Text = "Dialup unsuccessful"
End If
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.
-
Oct 16th, 2008, 11:08 PM
#2
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
-
Oct 17th, 2008, 10:51 AM
#3
Thread Starter
Junior Member
Re: How to specify the access number to dial?
 Originally Posted by gep13
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.
-
Oct 17th, 2008, 11:09 AM
#4
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...
-
Oct 18th, 2008, 01:13 AM
#5
Thread Starter
Junior Member
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?
-
Oct 18th, 2008, 08:01 AM
#6
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|