Leaked source code of windows server 2003
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.

78 lines
1.7 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. //
  20. // if you change the structure below to handle new PnP Ioctls,
  21. // make sure you change the code in NDIS that checks for the
  22. // lenght of the input buffer against the information in this
  23. // structure
  24. //
  25. typedef struct _NDIS_PNP_OPERATION
  26. {
  27. UINT Layer;
  28. UINT Operation;
  29. union
  30. {
  31. PVOID ReConfigBufferPtr;
  32. ULONG_PTR ReConfigBufferOff;
  33. };
  34. UINT ReConfigBufferSize;
  35. NDIS_VAR_DATA_DESC LowerComponent;
  36. NDIS_VAR_DATA_DESC UpperComponent;
  37. NDIS_VAR_DATA_DESC BindList;
  38. } NDIS_PNP_OPERATION, *PNDIS_PNP_OPERATION;
  39. //
  40. // Used by proxy and RCA
  41. //
  42. #define NDIS_PROTOCOL_TESTER 0x20000000
  43. #define NDIS_PROTOCOL_PROXY 0x40000000
  44. #define NDIS_PROTOCOL_BIND_ALL_CO 0x80000000
  45. #define NDIS_OID_MASK 0xFF000000
  46. #define NDIS_OID_PRIVATE 0x80000000
  47. #define OID_GEN_ELAPSED_TIME 0x00FFFFFF
  48. typedef struct _NDIS_STATS
  49. {
  50. LARGE_INTEGER StartTicks;
  51. ULONG64 DirectedPacketsOut;
  52. ULONG64 DirectedPacketsIn;
  53. } NDIS_STATS, *PNDIS_STATS;
  54. //
  55. // the name of the Ndis BindUnbind CallBack object
  56. //
  57. #define NDIS_BIND_UNBIND_CALLBACK_NAME L"\\CallBack\\NdisBindUnbind"
  58. #endif // __NDISPRV_H