Well, i’ve looked on MSDN about this an only found this: GetAdaptersAddresses
And what i’m trying to get is the Etherned Information, such as Description, Bytes Sent, Bytes Received, Bandwidth, Latency, etc. It’s possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can get most of that with
GetIfTable2andGetIfEntry2. If you need compatibility with XP and earlier, you’ll want to look atGetIfTableandGetIfEntryinstead. The*2functions give more information, but only work on Vista and newer.I don’t believe either will show latency though — for that you pretty much need to do some measuring. Likewise, the bandwidth will be simply the rated bandwidth of the adapter (e.g., 100 Mb/s or 1000 Mb/s), not what you can necessarily expect when communicating with any particular host.
Edit: Here’s some code I had lying around that should show the general idea of how to use these functions: