Solved

RAS conection creation using a given modem controler in win95

Posted on 1998-12-10
13
246 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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Strange behavior when a form is closed 6 61
select query - oracle 16 100
TServerSocket - file via sendbuf or Text via sendtext ? 1 65
Graphics32 under Delphi 10.1 Berlin 2 96
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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

808 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