PC Review


Reply
Thread Tools Rate Thread

Byte count from active network connection

 
 
Christer
Guest
Posts: n/a
 
      15th Feb 2004
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
 
Reply With Quote
 
 
 
 
=?Utf-8?B?c29tYXJpcw==?=
Guest
Posts: n/a
 
      15th Feb 2004
Just write a C++ dll that uses the IPHelper interface

somaris
 
Reply With Quote
 
Willy Denoyette [MVP]
Guest
Posts: n/a
 
      15th Feb 2004
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.


"Christer" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
resettign network connection count TriplexDread Windows XP 0 13th Jan 2009 08:35 PM
VPN problem: There is more than one active network connection ... Andy Stansfield Windows Vista Networking 4 31st May 2008 01:02 PM
There is more than one active network connection on this computer =?Utf-8?B?U2hpcmFudWk=?= Windows Vista Networking 2 4th Mar 2008 06:07 PM
Spot the active network connection! Carl Farrington Windows Vista Networking 0 1st Nov 2007 07:45 AM
network connection to active directory macman1960 Microsoft Windows 2000 Active Directory 4 10th Oct 2003 09:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:46 PM.