Solved

Configuring a RAS conection by programming

Posted on 1998-12-10
6
177 Views
Last Modified: 2013-12-16
Sorry I am not english speaking and perhaps I am wrong. By conection I mean the diferent conections in RAS for diferent providers (please, correct me if wrong)

Suppose I have more than one modem devices installed in my computer. I would like know how to create a new conection, using one of the modem devices, previously selected, and how to configure it (what DLLs to use? what functions?). By means of a program (not manually).

Thanks in advance.

I. Juarrero
0
Comment
Question by:juarrero
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 3

Expert Comment

by:rosefire
ID: 1760141
Are you trying to use two modems to dial to two different places, if so the answer is you can't do that.  Windows has no way to keep two connections. It has to have one at a time.
0
 

Author Comment

by:juarrero
ID: 1760142
No, sorry. I am trying to create an only conection, but i want to be able of choosing which of the modem controlers to use at building this RAS conection (perhaps I did not ougth to use the word "devices", sorry). All of it developed by a program, not manually.
0
 
LVL 3

Expert Comment

by:rosefire
ID: 1760143
No problem, rejecting the answer was fine.  Your english is fine too.  To swap the modem controllers the only way to do this would be to exchange drivers while your system is active.  This can be done without a reboot on the modems I have used (this may not be guaranteed for any modem), but I think you would need a custom program or script to go in and exchange the driver set.

Depending on how often you want to do this here is an awkward way you can try.

Each time you want to change modems, delete the modem in use from the device manager tab in control panel > system, then redetect the modem and select to install the one you want.  

There are a couple of problems with this.  It may lead to odd problems like a growing registry file if the reinstall is not done exactly right by the system and entries accumulate in the registry.  It may also be that your modem reinstallation will require a reboot.  This is a messy approach.

There is no existing program that will do this for you, as I am guessing you already know.

Why do you want to do this, perhaps there is a better way or another solution to achieve what you want to achieve.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 5

Expert Comment

by:Jason_S
ID: 1760144
You can create one setting for each provider.  Just configure the settings on each configuration to use their own phone number, and modem.  You would need to have the two modems configured in Control Pannel.

Is this what you are looking for?
0
 

Author Comment

by:juarrero
ID: 1760145
Lets see. The idea is simple. My program must develop the following task: I have two modem controlers in my pc. The program must ask me for one, an then, knowing it, construct (create from zero) a new conection in RAS, to a predeterminated provider, but this conection must be configurated to use the chosen modem. No more than it, only to create a conection using a previously determinated modem. It must be some function in API that allows this task. I know of one for creating conection (as well as some function for modifiying parameters in a already created conection, as for instance, the software compression), but I am not able to find one that asks me for the precise modem i want to use. This is what i really need: the functionm and API for creating a conection such that asks me for the modem
0
 
LVL 3

Accepted Solution

by:
linschoten earned 400 total points
ID: 1760146
I have a program that will create a RAS connection. Not manually but via a script. an example of the script is below. E-Mail me on lj-uvc@usa.net and I will send you the program to create it.

[Entry]
Entry_Name=New Connection
Import_Name=New Connection
Multilink=no

[Phone]
Dial_As_Is=no
Phone_Number=1234567
Area_Code=04
Country_Code=64
Country_ID=64

[Device]
Type=
Name=
Settings_Size=
Settings=

[Server]
Type=PPP
SW_Compress=yes
PW_Encrypt=no
Network_Logon=yes
SW_Encrypt=no
Negotiate_NetBEUI=no
Negotiate_IPX/SPX=no
Negotiate_TCP/IP=yes

[TCP/IP]
Specify_IP_Address=no
Specify_Server_Address=yes
DNS_address=11.22.33.44
DNS_Alt_address=11.22.33.44
WINS_address=11.22.33.44
WINS_Alt_address=11.22.33.44
IP_Header_Compress=yes
Gateway_On_Remote=yes

0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article summaries thoughts and ideas from two years of sustained use. It provides good reasoning to make the jump to Windows 10.
A small collection of useful tips and tricks for Windows 10 users that I decided to write as a result of recent questions that were asked and answered at Experts Exchange. Two short video tutorials included. Enjoy..
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question