Solved

RAS conection creation using a given modem controler in win95

Posted on 1998-12-10
13
247 Views
Last Modified: 2010-04-04
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 this, construct (create from zero) a new conection in RAS, to a predeterminated provider (known by the program itself). But this conection must be configurated to use the chosen modem. No more than it, only to create a conection using a previously given modem. Must be some function in an API that allows this task. I know of one for creating conections (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 besides asks me (my program) for the precise modem I want to use. This is what I really need: the function and API for creating a conection such that asks me for the modem device I want to use.
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
  • 7
  • 3
  • 3
13 Comments
 
LVL 4

Expert Comment

by:dwwang
ID: 1350440
Could you tell me what API do you use to create connections?
0
 
LVL 4

Expert Comment

by:jeurk
ID: 1350441
maybe you find the following link usefull
http://members.xoom.com/MrPAP/MSDN_Help.htm
0
 

Author Comment

by:juarrero
ID: 1350442
An answer for dwwang:

The API is RASApi. The function is RasSetEntryDialParams

Sorry for de delay.
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 4

Expert Comment

by:dwwang
ID: 1350443
If I was not wrong, RasSetEntryDialParams is for modifying existing entries, right? For create new one, you can use RasCreatePhonebookEntry.

There is a new API called RasSetEntryProperties, which contains the parameters for modem device information, but as MShelp said, it's only available for WinNT.
0
 

Author Comment

by:juarrero
ID: 1350444
jeurk:

I have seen the page, but there is information for NT, not W95.

The problem is that I only know how to change de modem in the connection, but the parameters, such as parity, result in a mixture of the parameters of other modem controlers
0
 
LVL 4

Expert Comment

by:jeurk
ID: 1350445
Sorry,
I once tryed similar programming under 95 but, it's really to much work.
Good luck.
0
 

Author Comment

by:juarrero
ID: 1350446
Response to dwwang:

Yes, but, I said to jeurk...

The problem is that the parameters, such as the parity, result in a mixture of the parameters of other modem controlers and besides, it does not happen always. (I do not know the cause).
I do not know the estructures to copy the parameters to the new entry.  Or any other sugerence respect to this :)
0
 
LVL 4

Expert Comment

by:dwwang
ID: 1350447
Well, for so much points, I'll have a try! :)
0
 
LVL 4

Expert Comment

by:jeurk
ID: 1350448
Maybe you could show us what you already have, maybe we can look out your problem ?
I'm talkind source code here.
0
 
LVL 4

Expert Comment

by:dwwang
ID: 1350449
Hi, juarrero:
I just have the same idea. If you can e-mail me your souce code to create and modify the RAS entries, then we can take less time to go further :)

e-mail :dw-wang@263.net
0
 
LVL 4

Accepted Solution

by:
dwwang earned 400 total points
ID: 1350450
Hi, I found the solution, download this component, and you get what you want:
http://mirror.aarnet.edu.au/delphi/ftp/d20free/d_ras.zip 

See the testras program included, note that there are two "create new connection" buttons in the main form, select the one with '*' and see its implmentation in source code.

Regards,
Wang
0
 
LVL 4

Expert Comment

by:dwwang
ID: 1350451
Hi, juarrero:

How are things going?
0
 
LVL 4

Expert Comment

by:dwwang
ID: 1350452
Have you tried the programm?
0

Featured Post

Industry Leaders: 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!

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

749 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