Archived

This topic is now archived and is closed to further replies.

determine amount of bytes sent or received?

This topic is 5602 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do you determine the amount of bytes sent or received? For example, when Zone Alarm tells you the amount uploaded or downloaded. I want to make a little program like that in order to stay within my ISP bandwidth limit. A link, source code, or anything to get me started would be great. (Visual C++ or VB is fine) Thanks

Share this post


Link to post
Share on other sites
Thanks a lot. PDH seems to be working fine on XP. Here are two links I found pretty good:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/perfdata_4982.asp

and

http://www.microsoft.com/msj/defaultframe.asp?page=/msj/0598/hood0598.htm (outdated a bit)

Remember to put pdh.lib as a library.

[edited by - Twist on August 16, 2002 12:01:50 PM]

Share this post


Link to post
Share on other sites