Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3968522
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:51:11+00:00 2026-05-20T03:51:11+00:00

Well, i’ve looked on MSDN about this an only found this: GetAdaptersAddresses And what

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T03:51:12+00:00Added an answer on May 20, 2026 at 3:51 am

    You can get most of that with GetIfTable2 and GetIfEntry2. If you need compatibility with XP and earlier, you’ll want to look at GetIfTable and GetIfEntry instead. The *2 functions 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:

    #include <windows.h>
    #include <iphlpapi.h>
    #include <stdlib.h>
    #include <stdio.h>
    
    int main() { 
    
        MIB_IFTABLE *interfaces;
        unsigned long size = 0;
        int i, j;
    
        GetIfTable(interfaces, &size, FALSE);
    
        interfaces = (MIB_IFTABLE *)malloc(size);
    
        GetIfTable(interfaces, &size, TRUE);
    
        for (i=0; i<interfaces->dwNumEntries; i++) {
            MIB_IFROW &xf = interfaces->table[i];
    
            printf("%s\n\t", xf.bDescr);
            for (j=0; j<xf.dwPhysAddrLen; j++) {
                printf("%2.2X", xf.bPhysAddr[j]);
                if ( j!= xf.dwPhysAddrLen-1)
                    printf(":");
            }
            printf("\n");
            switch(xf.dwType) {
            case MIB_IF_TYPE_ETHERNET:
                printf("Ethernet");
                break;
            case MIB_IF_TYPE_FDDI:
                printf("FDDI");
                break;
            case MIB_IF_TYPE_TOKENRING:
                printf("Token Ring");
                break;
            case MIB_IF_TYPE_LOOPBACK:
                printf("Loopback adapter");
                break;
            case MIB_IF_TYPE_OTHER:
                printf("Other");
                break;
            }
            printf("\n");
        }
        return 0;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well, I was trying to fix this program, and I keep getting the errors
well I'm trying to create a great playlist of music, only using a sigle
Well, here I continue, trying to learn this very nice language... So I previously
well i have a configuration like this in the components part of my config
well, I am trying to include a header file in my project, while the
Well,This thing has bugged me for days. I have developed an app that checks
Well here is what I'm trying to do. I want to convert a array
Well, sorry for the question, is more like a general culture one (haven't found
Well, this is an interesting problem. I have an ASP.NET MVC3 Intranet application running
Well, I know there is a lots of posts about it, but I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.