mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
1.7 KiB
84 lines
1.7 KiB
/*++
|
|
|
|
Copyright (c) 1995 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
ethstat.h
|
|
|
|
Abstract:
|
|
|
|
|
|
Author: Rod Gamache (rodga)
|
|
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
#ifndef _ETHSTAT_
|
|
#define _ETHSTAT_
|
|
|
|
|
|
#include <nt.h>
|
|
#include <ntrtl.h>
|
|
#include <nturtl.h>
|
|
#include <windows.h>
|
|
#include <assert.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <time.h>
|
|
#include <memory.h>
|
|
#include <string.h>
|
|
#include <ctype.h>
|
|
#include <ntddndis.h>
|
|
|
|
|
|
|
|
#define MAX_NIC 8
|
|
|
|
|
|
typedef struct {
|
|
char DeviceName[64];
|
|
HANDLE Handle;
|
|
} DEVICE, *PDEVICE;
|
|
|
|
|
|
typedef struct _NET_SAMPLE_STATISTICS {
|
|
ULONGLONG OidGenMediaInUse;
|
|
ULONGLONG OidGenLinkSpeed;
|
|
ULONGLONG OidGenXmitError;
|
|
ULONGLONG OidGenRcvError;
|
|
ULONGLONG OidGenRcvNoBuffer;
|
|
ULONGLONG OidGenDirectedBytesXmit;
|
|
ULONGLONG OidGenDirectedFramesXmit;
|
|
ULONGLONG OidGenDirectedBytesRcv;
|
|
ULONGLONG OidGenDirectedFramesRcv;
|
|
ULONGLONG OidGenMulticastBytesXmit;
|
|
ULONGLONG OidGenMulticastFramesXmit;
|
|
ULONGLONG OidGenBroadcastBytesXmit;
|
|
ULONGLONG OidGenBroadcastFramesXmit;
|
|
ULONGLONG OidGenMulticastBytesRcv;
|
|
ULONGLONG OidGenMulticastFramesRcv;
|
|
ULONGLONG OidGenBroadcastBytesRcv;
|
|
ULONGLONG OidGenBroadcastFramesRcv;
|
|
ULONGLONG OidGenRcvCrcError;
|
|
ULONGLONG OidGenTransmitQueueLength;
|
|
ULONGLONG Oid802_3RcvErrorAlignment;
|
|
ULONGLONG Oid802_3XmitOneCollision;
|
|
ULONGLONG Oid802_3XmitMoreCollisions;
|
|
ULONGLONG Oid802_3XmitDeferred;
|
|
ULONGLONG Oid802_3XmitMaxCollisions;
|
|
ULONGLONG Oid802_3RcvOverRun;
|
|
ULONGLONG Oid802_3XmitUnderRun;
|
|
ULONGLONG Oid802_3XmitTimesCrsLost;
|
|
ULONGLONG Oid802_3XmitLateCollisions;
|
|
} NET_SAMPLE_STATISTICS, *PNET_SAMPLE_STATISTICS;
|
|
|
|
|
|
|
|
extern char *NetworkMedium[];
|
|
|
|
|
|
#endif // _ETHSTAT_
|
|
|