Solved

RAS conection creation using a given modem controler in win95

Posted on 1998-12-10
13
243 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

760 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

23 Experts available now in Live!

Get 1:1 Help Now