Solved

Adding RAS Entries

Posted on 1998-07-03
8
321 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
8 Comments
 
LVL 10

Expert Comment

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

Author Comment

by:Dazza051197
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 7

Accepted Solution

by:
jconde earned 100 total points
Comment Utility
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
Comment Utility
I'VE JUST LOST 10 POINTS!


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

Expert Comment

by:topak
Comment Utility
Yeah.. me too...
0
 
LVL 1

Expert Comment

by:imstaff
Comment Utility
send it to me too, thanks :)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

772 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

14 Experts available now in Live!

Get 1:1 Help Now