Jump to content

Who can help me monitor LAN traffic hurt their example


25685
 Share

Recommended Posts

Who can help me monitor LAN traffic hurt their example

This is the C + + example

MIB_IFROW ifMib;

MIB_IFTABLE* ifTable = new MIB_IFTABLE[15];

DWORD dwSize = sizeof(MIB_IFTABLE)*15;

GetIfTable(ifTable, &dwSize, TRUE);

//ifMib.dwIndex = ifTable->table[2].dwIndex

ifMib.dwIndex = ifTable->table[netid].dwIndex ;

GetIfEntry(&ifMib);

NewAllOut=ifMib.dwOutOctets/1024;The flow

NewAllIn=ifMib.dwInOctets/1024;Progressive flow

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...