Solved

Win 95/NT Dial-Up Networking Phonebook entries

Posted on 1998-09-22
7
196 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 100 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
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 is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

726 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