Byte count from active network connection

  • Thread starter Thread starter Christer
  • Start date Start date
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
 
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.
 
Back
Top