how can i monitor the internet connection speed ??

which api shall i use ?

i already made a program that connect to the net using

the api Rasdail , now i need to know how can i know the connection speed, bytesent , byte resiceved ..etc

i have search the MSDN but i found nothing , or found apis that works on winNT only.

thanks for your time.
Posted on 2002-09-18 11:20:12 by Sa6ry
this would require to monitor the current data rate of the IP stack from windows,
dont know if this is possible :confused:

you could take a look in the Performance Data Helper API (Pdhxxx functions)
which is used also by the little windows tool (in german windows: Systemmonitor)
that shows memory usage, hard disk access and more as little charts.
Posted on 2002-09-19 05:09:18 by beaster
I have done this in a little program i wrote called netload, like dumeter.

you can download it from here

basically you get how much data has been transferred for each adapter using the GetIfTable, part of the iphlpapi library.
Posted on 2002-09-19 18:21:13 by mega