For Win95/98/ME, concerning the registry key:
HKEY_DYN_DATA\PerfStats\StatData: Dial-Up Adapter\ConnectSpeed
I've also seen "Dial-Up Adapter #2" which I believe has to do with VPN.
Is the keyname portion "Dial-Up Adapter" the only one I need to look at if I
want to programatically get the ConnectSpeed, no matter
how many modems are connected? I've seen that this is the only stats that
are updated no matter which modem I use.
Also, I saw methods for drilling down to this key programatically to get the
ConnectSpeed and I get the impression that this could be
locale dependant. The method I've seen is:
1. Start with HKLM\System\CurrentControlSet\Services\Class\Net\0 000 and walk
that tree until you find an adapter with AdapterName ==
'MS$PPP'
2. Use the DriverDesc value from that adapter (usually 'Dial-Up Adapter') to
find the name for the PerfStats\StatData key name.
Last question, I've seen
HKLM\System\CurrentControlSet\Services\Class\Net\0 00n DriverDesc=='DFÜ-
Adapter' (in German). See the image
at:
http://www.bis0uhr.de/tuning/dfue/slownet.gif
Is it possible that HKEY_DYN_DATA\PerfStats\StatData will have a key DFÜ-
Adapter\ConnectSpeed (locale dependent) that I should use
instead of looking for a hardcoded 'Dial-Up Adapter' string? Or can I just
hardcode this to the string 'Dial-Up Adapter' and be done
with it? Thanks all.
Barnaby. . .