Solved

RAS conection creation using a given modem controler in win95

Posted on 1998-12-10
13
244 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
  • 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now