?
Solved

Win 95/NT Dial-Up Networking Phonebook entries

Posted on 1998-09-22
7
Medium Priority
?
197 Views
Last Modified: 2013-12-03
I am trying to create a windows interface similar to the Windows 95/NT dial-up networking app.  In particular I am wondering where the Display Names for installed ISP's are read from to populate the phonebook entries listbox when running the Dial_Up networking software.  I was thinking registry key, or ini file.  Any ideas on how to query these display names would be greatly appreciated.  Thanks

Pete
0
Comment
Question by:peteyy
[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
  • 3
  • 3
7 Comments
 
LVL 1

Accepted Solution

by:
nrobin earned 400 total points
ID: 1414683
You need to connect to the RAS services, done by connecting to rasapi32 dll.  The function you require is RasEnumEntries.  I have code for this  in Delphi...would you like it?
0
 
LVL 1

Expert Comment

by:jf26028
ID: 1414684
The following keys in the registry have the information that you are looking for.  

HKEY_CURRENT_USER\RemoteAccess\Addresses
HKEY_USERS\.Default\RemoteAccess\Addresses

YOu can use the registry api to get the values in each key.  This should be what you are looking for.
0
 
LVL 1

Expert Comment

by:nrobin
ID: 1414685
Using the registry keys is fine and good, but creating an similar to a 95/NT dial-up app will require more than just the reg. values.

Regards, Nicholas.

0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 1

Expert Comment

by:jf26028
ID: 1414686
Not really.  Peteyy just wanted to know the names of the services available, and that is what I showed him.  And, if he did want to start a connection, the following code is all that he would need to start one.

Private Sub StartConnection()
   Dim X

   X = Shell("rundll32.exe rnaui.dll,RnaDial " &                           "Your_Connection_Name", 1)
   DoEvents
   SendKeys "{enter}", True
   DoEvents
End Sub


0
 
LVL 1

Expert Comment

by:nrobin
ID: 1414687
You sound a bit miffed, didn't mean to upset you.  However petvvy
did say "I am trying to create a windows interface similar to the Windows 95/NT dial-up networking app".

Connecting to the DLL yourself offers you much more control, that can be then delivered to the end user through your own application interface.
0
 
LVL 1

Expert Comment

by:jf26028
ID: 1414688
No problem here.  You are creating a connection in a more programmically way, but he really didnt ask how to connect.  He just wanted to get the list of names.  Either way, he cant go wrong with both of us answering the quesiton.
jf26028
0
 

Author Comment

by:peteyy
ID: 1414689
I've implemented the RasEnumEntries and it seems to be doing the trick.  I did notice , however, on someone running an NT box with several ISP phone book entries, that not all these entries were returned from the RASEnumEntries call.  Maybe a little more insight into what this API really gets and how entries should be configured in order retrieve all the right values, would help me in better implementing this functionality.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

764 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