Archived

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

Emexus

bytes sent over conection

Recommended Posts

Hi All, Im thinking of writting a small application that will display the number of bytes sent/recived from my internet connection, should i be looking at winsock?? ive never done any programming to do with the internet so this is all new to me. if not winsock then what would be the best way of gaining access to the data sent information? any help is greatly appreciated. cheers

Share this post


Link to post
Share on other sites
Thanks for the reply JonStelly
im reading up on it now, just another quick question in order to use perfmon counters i will need to include #include <pdh.h>
is this correct?

cheers

Share this post


Link to post
Share on other sites
Yes, you''ll need to include pdh.h and link with pdh.lib.

There are other ways to get at the perfmon data, it''s kept as binary structures in a special registry key, but the PDH API is probably the simplest way to deal with it.

Share this post


Link to post
Share on other sites