|
-
Jan 30th, 2002, 07:11 AM
#1
Thread Starter
Junior Member
VB RAS? - Getting DUN Names!
-
Jan 30th, 2002, 12:11 PM
#2
Addicted Member
This site is very usefull in explaing the RAS API.
http://www.totalenviro.com/PlatformVB
Hope this helps.
-
Jan 31st, 2002, 05:02 AM
#3
Thread Starter
Junior Member
Hi,
thanks for replying, I've got the helpfiule from the site, but the file says use Enum[..] to get the connection names.. however in the enum part, it will only return the number of phonebook entries..
-
Jan 31st, 2002, 05:59 AM
#4
Addicted Member
If you look at the first eample in :-
Dial-up Networking\Working with phonebook entries\Enumerating existing entries The example is in yellow. Paste this code into a module. Then from a command button or something insert this code.
Code:
Dim myRasEntry() As VBRasEntryName
Dim ret As Long
Dim l As Long
ret = VBRasGetAllEntries(myRasEntry)
For l = LBound(myRasEntry) To UBound(myRasEntry)
Debug.Print myRasEntry(l).entryname
Next
The return value is the count of entries, but the array you passed is now filled with the name of each entry.
Happy coding.
-
Jan 31st, 2002, 08:06 AM
#5
Thread Starter
Junior Member
aah
thanks, I was too hasty to look properly into it!
-
Feb 2nd, 2002, 08:37 AM
#6
Thread Starter
Junior Member
darrenl,
I've done what I wanted, but in order for me to replicate the WHOLE DUN settings, I can't write the user/pass to the new dun I've just created.. read thru that help file and the set dial params function doens't have an "entryname" to pass to..
any ideas?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|