I posted this in the networking forum.. but:
http://www.vbforums.com/showthread.p...hreadid=138896
ta.
Printable View
I posted this in the networking forum.. but:
http://www.vbforums.com/showthread.p...hreadid=138896
ta.
This site is very usefull in explaing the RAS API.
http://www.totalenviro.com/PlatformVB
Hope this helps.
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..
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.
The return value is the count of entries, but the array you passed is now filled with the name of each entry.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
Happy coding.
aah
thanks, I was too hasty to look properly into it!
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? :)