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.

76 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1990-1995 Microsoft Corporation
  3. Module Name:
  4. ndisprv.h
  5. Abstract:
  6. Author:
  7. Kyle Brandon (KyleB)
  8. Environment:
  9. Kernel mode
  10. Revision History:
  11. --*/
  12. #ifndef __NDISPRV_H
  13. #define __NDISPRV_H
  14. //
  15. // All mac options require the reserved bit to be set in
  16. // the miniports mac options.
  17. //
  18. #define NDIS_MAC_OPTION_NDISWAN 0x00000001
  19. typedef struct _NDIS_PNP_OPERATION
  20. {
  21. UINT Layer;
  22. UINT Operation;
  23. union
  24. {
  25. PVOID ReConfigBufferPtr;
  26. ULONG_PTR ReConfigBufferOff;
  27. };
  28. UINT ReConfigBufferSize;
  29. NDIS_VAR_DATA_DESC LowerComponent;
  30. NDIS_VAR_DATA_DESC UpperComponent;
  31. NDIS_VAR_DATA_DESC BindList;
  32. } NDIS_PNP_OPERATION, *PNDIS_PNP_OPERATION;
  33. //
  34. // Used by proxy and RCA
  35. //
  36. #define NDIS_PROTOCOL_TESTER 0x20000000
  37. #define NDIS_PROTOCOL_PROXY 0x40000000
  38. #define NDIS_PROTOCOL_BIND_ALL_CO 0x80000000
  39. #define NDIS_OID_MASK 0xFF000000
  40. #define NDIS_OID_PRIVATE 0x80000000
  41. #define OID_GEN_ELAPSED_TIME 0x00FFFFFF
  42. typedef struct _NDIS_STATS
  43. {
  44. #if NDIS_STATISTICS_BYTES
  45. LARGE_INTEGER DirectedBytesOut;
  46. LARGE_INTEGER DirectedBytesIn;
  47. #endif
  48. LARGE_INTEGER StartTicks;
  49. ULONG64 DirectedPacketsOut;
  50. ULONG64 DirectedPacketsIn;
  51. } NDIS_STATS, *PNDIS_STATS;
  52. //
  53. // the name of the Ndis BindUnbind CallBack object
  54. //
  55. #define NDIS_BIND_UNBIND_CALLBACK_NAME L"\\CallBack\\NdisBindUnbind"
  56. #endif // __NDISPRV_H