Solved

Adding RAS Entries

Posted on 1998-07-03
8
331 Views
Last Modified: 2010-04-04
Can I add an entry to the Dial Up Networking Entries in Windows 95/98 programmatically ?  I know I can call the RAS API function CreateEntry, but that just pops up a dialog for the user to enter the details.  I also know that the entries are stored in the registry, but can anyone decode the information as it's all binary data.
0
Comment
Question by:Dazza051197
[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
8 Comments
 
LVL 10

Expert Comment

by:Jacco
ID: 1357076
These function might come in handy. They are part of the RasAPI.
The header is available in the internet (and from me if you want).

Ras.Pas
{ Delphi conversion by Davide Moretti <dmoretti@iper.net> }

function RasSetEntryProperties
function RasSetSubEntryProperties

They use some large structures like TRasEntry.

I can check out how it works but you might be helped with this alone.

Regards Jacco
0
 
LVL 10

Expert Comment

by:Jacco
ID: 1357077
These are the prototypes of the functions (unfortunately they are not strongly typed, but are translated from a C/C++ header file)

function RasSetEntryProperties(
    lpszPhonebook,
    szEntry: PChar;
    lpbEntry: Pointer;
    dwEntrySize: Longint;
    lpbDeviceInfo: Pointer;
    dwDeviceInfoSize: Longint
    ): Longint; stdcall;

function RasSetSubEntryProperties(
    lpszPhoneBook,
    lpszEntry: PChar;
    dwSubEntry: Longint;
    var lpRasSubEntry: TRasSubEntry;
    dwcb: Longint;
    p: Pointer;
    dw: Longint
    ): Longint; stdcall;

0
 
LVL 10

Expert Comment

by:Jacco
ID: 1357078
Sorry, this doesn't include adding a new item without the dialogbox..... I look further.
0
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!

 
LVL 1

Author Comment

by:Dazza051197
ID: 1357079
I need to be able to add the entries to the users list without the dialog as I'm automating the installation of DUN and need to add my ISP's phone numbers to the list and most of the users don't know about DUN.
0
 
LVL 7

Accepted Solution

by:
jconde earned 100 total points
ID: 1357080
Hi Dazza, send me an email to jconde@securities.com, and I'll reply with an example source code of a Ras dialup application I made!
0
 

Expert Comment

by:suguinha
ID: 2538687
I'VE JUST LOST 10 POINTS!


WHERE_IS_THE_ANSWER I WAS LOOKING FOR ?!?!?!?!?!??!?!?!?!?!?!?!
0
 

Expert Comment

by:topak
ID: 4065592
Yeah.. me too...
0
 
LVL 1

Expert Comment

by:imstaff
ID: 10375370
send it to me too, thanks :)
0

Featured Post

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!

Question has a verified solution.

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

Suggested Solutions

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

710 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