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.

141 lines
3.9 KiB

  1. /*++
  2. Copyright (c) 1989-1994 Microsoft Corporation
  3. Module Name:
  4. NtDspVec.h
  5. Abstract:
  6. This module declares the routines used to initialize a dispatch vector. this includefile is
  7. essentially private for NT version of the fsd and fspdispatch.
  8. Author:
  9. Joe Linn [JoeLinn] 2-Aug-94
  10. Revision History:
  11. --*/
  12. #ifndef _DISPVEC_
  13. #define _DISPVEC_
  14. //
  15. // Global structures used to dispatch to the actual routines. By having
  16. // a common dispatch we are able to consolidate handling of stuff like
  17. // dispatching to a stack overflow thread, irpcontext getting, logging, etc.
  18. // We may decide later that we
  19. // would rather save the few cycles that this takes. Eventually, all the FCBs will
  20. // have pointers to optimized dispatch tables.
  21. //
  22. typedef struct _RX_FSD_DISPATCH_VECTOR{
  23. PRX_DISPATCH CommonRoutine;
  24. ULONG StackRequirement;
  25. } RX_FSD_DISPATCH_VECTOR, *PRX_FSD_DISPATCH_VECTOR;
  26. extern RX_FSD_DISPATCH_VECTOR RxFsdDispatchVector[IRP_MJ_MAXIMUM_FUNCTION + 1];
  27. extern RX_FSD_DISPATCH_VECTOR RxDeviceFCBVector[IRP_MJ_MAXIMUM_FUNCTION + 1];
  28. #define DISPVECENTRY_SELECT_1(x) RxCommon##x
  29. #define DISPVECENTRY_SELECT_0(x) RxCommonDispatchProblem
  30. #define DISPVECENTRY_SELECT(x,y) DISPVECENTRY_SELECT_##x(y)
  31. #define DISPVECENTRY_NEW(IRPSUFFIX,IMPL,VEC,STACKREQ) \
  32. {DISPVECENTRY_SELECT(IMPL,VEC),STACKREQ}
  33. #if (IRP_MJ_CREATE != 0x00)
  34. #error IRP_MJ_CREATE has changed!!!
  35. #endif
  36. #if (IRP_MJ_CREATE_NAMED_PIPE != 0x01)
  37. #error IRP_MJ_CREATE_NAMED_PIPE has changed!!!
  38. #endif
  39. #if (IRP_MJ_CLOSE != 0x02)
  40. #error IRP_MJ_CLOSE has changed!!!
  41. #endif
  42. #if (IRP_MJ_READ != 0x03)
  43. #error IRP_MJ_READ has changed!!!
  44. #endif
  45. #if (IRP_MJ_WRITE != 0x04)
  46. #error IRP_MJ_WRITE has changed!!!
  47. #endif
  48. #if (IRP_MJ_QUERY_INFORMATION != 0x05)
  49. #error IRP_MJ_QUERY_INFORMATION has changed!!!
  50. #endif
  51. #if (IRP_MJ_SET_INFORMATION != 0x06)
  52. #error IRP_MJ_SET_INFORMATION has changed!!!
  53. #endif
  54. #if (IRP_MJ_QUERY_EA != 0x07)
  55. #error IRP_MJ_QUERY_EA has changed!!!
  56. #endif
  57. #if (IRP_MJ_SET_EA != 0x08)
  58. #error IRP_MJ_SET_EA has changed!!!
  59. #endif
  60. #if (IRP_MJ_FLUSH_BUFFERS != 0x09)
  61. #error IRP_MJ_FLUSH_BUFFERS has changed!!!
  62. #endif
  63. #if (IRP_MJ_QUERY_VOLUME_INFORMATION != 0x0a)
  64. #error IRP_MJ_QUERY_VOLUME_INFORMATION has changed!!!
  65. #endif
  66. #if (IRP_MJ_SET_VOLUME_INFORMATION != 0x0b)
  67. #error IRP_MJ_SET_VOLUME_INFORMATION has changed!!!
  68. #endif
  69. #if (IRP_MJ_DIRECTORY_CONTROL != 0x0c)
  70. #error IRP_MJ_DIRECTORY_CONTROL has changed!!!
  71. #endif
  72. #if (IRP_MJ_FILE_SYSTEM_CONTROL != 0x0d)
  73. #error IRP_MJ_FILE_SYSTEM_CONTROL has changed!!!
  74. #endif
  75. #if (IRP_MJ_DEVICE_CONTROL != 0x0e)
  76. #error IRP_MJ_DEVICE_CONTROL has changed!!!
  77. #endif
  78. #if (IRP_MJ_INTERNAL_DEVICE_CONTROL != 0x0f)
  79. #error IRP_MJ_INTERNAL_DEVICE_CONTROL has changed!!!
  80. #endif
  81. #if (IRP_MJ_SHUTDOWN != 0x10)
  82. #error IRP_MJ_SHUTDOWN has changed!!!
  83. #endif
  84. #if (IRP_MJ_LOCK_CONTROL != 0x11)
  85. #error IRP_MJ_LOCK_CONTROL has changed!!!
  86. #endif
  87. #if (IRP_MJ_CLEANUP != 0x12)
  88. #error IRP_MJ_CLEANUP has changed!!!
  89. #endif
  90. #if (IRP_MJ_CREATE_MAILSLOT != 0x13)
  91. #error IRP_MJ_CREATE_MAILSLOT has changed!!!
  92. #endif
  93. #if (IRP_MJ_QUERY_SECURITY != 0x14)
  94. #error IRP_MJ_QUERY_SECURITY has changed!!!
  95. #endif
  96. #if (IRP_MJ_SET_SECURITY != 0x15)
  97. #error IRP_MJ_SET_SECURITY has changed!!!
  98. #endif
  99. #if (IRP_MJ_POWER != 0x16)
  100. #error IRP_MJ_POWER has changed!!!
  101. #endif
  102. #if (IRP_MJ_SYSTEM_CONTROL != 0x17)
  103. #error IRP_MJ_SYSTEM_CONTROL has changed!!!
  104. #endif
  105. #if (IRP_MJ_DEVICE_CHANGE != 0x18)
  106. #error IRP_MJ_DEVICE_CHANGE has changed!!!
  107. #endif
  108. #if (IRP_MJ_QUERY_QUOTA != 0x19)
  109. #error IRP_MJ_QUERY_QUOTA has changed!!!
  110. #endif
  111. #if (IRP_MJ_SET_QUOTA != 0x1a)
  112. #error IRP_MJ_SET_QUOTA has changed!!!
  113. #endif
  114. #if (IRP_MJ_PNP != 0x1b)
  115. #error IRP_MJ_PNP has changed!!!
  116. #endif
  117. #if (IRP_MJ_PNP_POWER != IRP_MJ_PNP)
  118. #error IRP_MJ_PNP_POWER has changed!!!
  119. #endif
  120. #if (IRP_MJ_MAXIMUM_FUNCTION != 0x1b)
  121. #error IRP_MJ_MAXIMUM_FUNCTION has changed!!!
  122. #endif
  123. #endif // _DISPVEC_
  124.