Solved

Win 95/NT Dial-Up Networking Phonebook entries

Posted on 1998-09-22
7
185 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
  • 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
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 video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

759 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

21 Experts available now in Live!

Get 1:1 Help Now