Byte count from active network connection

C

Christer

Hi!

Is it possible to get the total amount of sent and recieved bytes on
the active network connection as shown when one double clicks on an
active connection in win2k and XP (which are the target operating
systems for my application)?

Basically I want to get numbers like BytesReceivedPerSec,
BytesSentPerSec and of course BytesTotalPerSec wich is available via
the Win32_PerfFormattedData_Tcpip_NetworkInterface class wich can be
reached via ManagementObjectSearcher. However, this class is not
available on Windows 2000.

Anybody tried this?

Kind regards
Christer
 
W

Willy Denoyette [MVP]

But the raw counter types are available in W2K (the cooked and fromatted
types derive from the Raw types).
Just use these and apply the formula corresponding to the counter type
qualifier.

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top