Source code of Windows XP (NT5)
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

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. ethstat.h
  5. Abstract:
  6. Author: Rod Gamache (rodga)
  7. Revision History:
  8. --*/
  9. #ifndef _ETHSTAT_
  10. #define _ETHSTAT_
  11. #include <nt.h>
  12. #include <ntrtl.h>
  13. #include <nturtl.h>
  14. #include <windows.h>
  15. #include <assert.h>
  16. #include <stdio.h>
  17. #include <stdlib.h>
  18. #include <time.h>
  19. #include <memory.h>
  20. #include <string.h>
  21. #include <ctype.h>
  22. #include <ntddndis.h>
  23. #define MAX_NIC 8
  24. typedef struct {
  25. char DeviceName[64];
  26. HANDLE Handle;
  27. } DEVICE, *PDEVICE;
  28. typedef struct _NET_SAMPLE_STATISTICS {
  29. ULONGLONG OidGenMediaInUse;
  30. ULONGLONG OidGenLinkSpeed;
  31. ULONGLONG OidGenXmitError;
  32. ULONGLONG OidGenRcvError;
  33. ULONGLONG OidGenRcvNoBuffer;
  34. ULONGLONG OidGenDirectedBytesXmit;
  35. ULONGLONG OidGenDirectedFramesXmit;
  36. ULONGLONG OidGenDirectedBytesRcv;
  37. ULONGLONG OidGenDirectedFramesRcv;
  38. ULONGLONG OidGenMulticastBytesXmit;
  39. ULONGLONG OidGenMulticastFramesXmit;
  40. ULONGLONG OidGenBroadcastBytesXmit;
  41. ULONGLONG OidGenBroadcastFramesXmit;
  42. ULONGLONG OidGenMulticastBytesRcv;
  43. ULONGLONG OidGenMulticastFramesRcv;
  44. ULONGLONG OidGenBroadcastBytesRcv;
  45. ULONGLONG OidGenBroadcastFramesRcv;
  46. ULONGLONG OidGenRcvCrcError;
  47. ULONGLONG OidGenTransmitQueueLength;
  48. ULONGLONG Oid802_3RcvErrorAlignment;
  49. ULONGLONG Oid802_3XmitOneCollision;
  50. ULONGLONG Oid802_3XmitMoreCollisions;
  51. ULONGLONG Oid802_3XmitDeferred;
  52. ULONGLONG Oid802_3XmitMaxCollisions;
  53. ULONGLONG Oid802_3RcvOverRun;
  54. ULONGLONG Oid802_3XmitUnderRun;
  55. ULONGLONG Oid802_3XmitTimesCrsLost;
  56. ULONGLONG Oid802_3XmitLateCollisions;
  57. } NET_SAMPLE_STATISTICS, *PNET_SAMPLE_STATISTICS;
  58. extern char *NetworkMedium[];
  59. #endif // _ETHSTAT_