Link to home
Start Free TrialLog in
Avatar of Aleq
Aleq

asked on

Detecting RAS (Dial-Up) bytes transfer

Hi. I'm looking for a way how to detect how many bytes have been transferred trhough line.
I know, that in Win98 or in Win95 + MS DUN upgrade 1.2 there is some info in HKEY_DYN_DATA, but it is almost unusable, because the entries in registry are dependent on language version of Windows. In CZ it is "Telefonni adapter" in US it is "Dial-Up Adapter" .... I want to know the connection speed and bytes transferred. Thanx!
Avatar of viktornet
viktornet
Flag of United States of America image

Why not have a translation of all the languages??

There might be an API call that might do what you want...

Cheers,
Viktor
Avatar of MikeP090797
MikeP090797

This is a long shot, but try:
If you know the connection name, use FindWindow on 'Connected to Connection'. Then use GetDlgItemText with 0x21C for bytes recv,  0x224 for bytes recv.
ASKER CERTIFIED SOLUTION
Avatar of dwwang
dwwang

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Aleq

ASKER

dwwang> I will look at TRAS. I'll grade your answer after looking at that component.
viktornet> Maybe, but there is another problem. In registry, there can be Dial-Up Adapter\... and Dial-Up Adapter 2\.... ..... But I don't know, which one is the right one.
MikeP> Nice solution, but it's quite dirty, isn't it? What if someone uses something else than classic DUN ? It won't work. But it's good idea. Thanx.
All> Sorry my english!