Solved

Detecting RAS (Dial-Up) bytes transfer

Posted on 1998-11-07
4
297 Views
Last Modified: 2010-04-04
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!
0
Comment
Question by:Aleq
4 Comments
 
LVL 10

Expert Comment

by:viktornet
Comment Utility
Why not have a translation of all the languages??

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

Cheers,
Viktor
0
 
LVL 8

Expert Comment

by:MikeP090797
Comment Utility
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.
0
 
LVL 4

Accepted Solution

by:
dwwang earned 200 total points
Comment Utility
Visit this site and download the TRAS component, it has all the functionalities you want:

http://www.magsys.co.uk/delphi/
0
 

Author Comment

by:Aleq
Comment Utility
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!
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now