mr_unreliable
Tue Jun 13 18:03:30 CDT 2006
hi mtn_biker,
Contrary to popular opinion, win98 is not dead.
As for your original question, I can tell you to find it,
look here:
HKEY_CURRENT_USER\RemoteAccess\Addresses
In that addresses "hive" you will find a subkey for each of
your connections (called "connectoids"). The information for
each connectoid is in the form of a long binary string.
However, I can't find anywhere which describes how to unpack
that binary, i.e., where to find the field which contains the
phone number (but it _is_ there).
If you want to just dial the number associated with the
connectoid, try this:
wshShell.Run "RunDll32 Rnaui.dll,RnaDial " & DunName, 1, False
Otherwise, you are going to have to delve more deeply
into "RAS" (Remote Access Services). Look it up on msdn.
There is one 3rd-party COM object written by Guenter Born
which provides (script) access to some (but not all) of the
RAS interfaces. It is called wshRAS, and found here:
http://people.freenet.de/gborn/WSHBazaar/WSHRas.htm
cheers, jw
____________________________________________________________
You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)
mtn_bikers@msn.com wrote:
> Hi,
>
> How can I get the phone number information for a Windows98 dial-up
> networking connection?
>
> Thanks.
>