Solved

Win 95/NT Dial-Up Networking Phonebook entries

Posted on 1998-09-22
7
195 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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…
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…

739 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