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.

187 lines
3.7 KiB

  1. #include "dspch.h"
  2. #pragma hdrstop
  3. #define LPDESC LPVOID
  4. #define NET_API_STATUS DWORD
  5. #define RAP_TRANSMISSION_MODE DWORD
  6. #define RAP_CONVERSION_MODE DWORD
  7. static
  8. DWORD
  9. RapArrayLength(
  10. IN LPDESC Descriptor,
  11. IN OUT LPDESC * UpdatedDescriptorPtr,
  12. IN RAP_TRANSMISSION_MODE TransmissionMode
  13. )
  14. {
  15. return 0;
  16. }
  17. static
  18. DWORD
  19. RapAsciiToDecimal(
  20. IN OUT LPDESC *Number
  21. )
  22. {
  23. return 0;
  24. }
  25. static
  26. DWORD
  27. RapAuxDataCount(
  28. IN LPBYTE Buffer,
  29. IN LPDESC Descriptor,
  30. IN RAP_TRANSMISSION_MODE TransmissionMode,
  31. IN BOOL Native
  32. )
  33. {
  34. return 0Xffffffff;
  35. }
  36. static
  37. DWORD
  38. RapAuxDataCountOffset(
  39. IN LPDESC Descriptor,
  40. IN RAP_TRANSMISSION_MODE TransmissionMode,
  41. IN BOOL Native
  42. )
  43. {
  44. return 0xffffffff;
  45. }
  46. static
  47. NET_API_STATUS
  48. RapConvertSingleEntry(
  49. IN LPBYTE InStructure,
  50. IN LPDESC InStructureDesc,
  51. IN BOOL MeaninglessInputPointers,
  52. IN LPBYTE OutBufferStart OPTIONAL,
  53. OUT LPBYTE OutStructure OPTIONAL,
  54. IN LPDESC OutStructureDesc,
  55. IN BOOL SetOffsets,
  56. IN OUT LPBYTE *StringLocation OPTIONAL,
  57. IN OUT LPDWORD BytesRequired,
  58. IN RAP_TRANSMISSION_MODE TransmissionMode,
  59. IN RAP_CONVERSION_MODE ConversionMode
  60. )
  61. {
  62. return ERROR_PROC_NOT_FOUND;
  63. }
  64. static
  65. NET_API_STATUS
  66. RapConvertSingleEntryEx(
  67. IN LPBYTE InStructure,
  68. IN LPDESC InStructureDesc,
  69. IN BOOL MeaninglessInputPointers,
  70. IN LPBYTE OutBufferStart OPTIONAL,
  71. OUT LPBYTE OutStructure OPTIONAL,
  72. IN LPDESC OutStructureDesc,
  73. IN BOOL SetOffsets,
  74. IN OUT LPBYTE *StringLocation OPTIONAL,
  75. IN OUT LPDWORD BytesRequired,
  76. IN RAP_TRANSMISSION_MODE TransmissionMode,
  77. IN RAP_CONVERSION_MODE ConversionMode,
  78. IN UINT_PTR Bias
  79. )
  80. {
  81. return ERROR_PROC_NOT_FOUND;
  82. }
  83. static
  84. DWORD
  85. RapGetFieldSize(
  86. IN LPDESC TypePointer,
  87. IN OUT LPDESC * TypePointerAddress,
  88. IN RAP_TRANSMISSION_MODE TransmissionMode
  89. )
  90. {
  91. return 0;
  92. }
  93. static
  94. BOOL
  95. RapIsValidDescriptorSmb(
  96. IN LPDESC Desc
  97. )
  98. {
  99. //
  100. // Since this function is always used in assertions, just return TRUE
  101. // so they don't fail when the delayload fails under low memory
  102. // conditions. In that case, we merely lose out on a DBG-only validation.
  103. //
  104. return TRUE;
  105. }
  106. static
  107. LPDESC
  108. RapParmNumDescriptor(
  109. IN LPDESC Descriptor,
  110. IN DWORD ParmNum,
  111. IN RAP_TRANSMISSION_MODE TransmissionMode,
  112. IN BOOL Native
  113. )
  114. {
  115. return NULL;
  116. }
  117. static
  118. DWORD
  119. RapStructureAlignment(
  120. IN LPDESC Descriptor,
  121. IN RAP_TRANSMISSION_MODE TransmissionMode,
  122. IN BOOL Native
  123. )
  124. {
  125. return 0;
  126. }
  127. static
  128. DWORD
  129. RapStructureSize(
  130. IN LPDESC Descriptor,
  131. IN RAP_TRANSMISSION_MODE TransmissionMode,
  132. IN BOOL Native
  133. )
  134. {
  135. return 0;
  136. }
  137. static
  138. DWORD
  139. RapTotalSize(
  140. IN LPBYTE InStructure,
  141. IN LPDESC InStructureDesc,
  142. IN LPDESC OutStructureDesc,
  143. IN BOOL MeaninglessInputPointers,
  144. IN RAP_TRANSMISSION_MODE TransmissionMode,
  145. IN RAP_CONVERSION_MODE ConversionMode
  146. )
  147. {
  148. return 0;
  149. }
  150. //
  151. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  152. //
  153. DEFINE_PROCNAME_ENTRIES(netrap)
  154. {
  155. DLPENTRY(RapArrayLength)
  156. DLPENTRY(RapAsciiToDecimal)
  157. DLPENTRY(RapAuxDataCount)
  158. DLPENTRY(RapAuxDataCountOffset)
  159. DLPENTRY(RapConvertSingleEntry)
  160. DLPENTRY(RapConvertSingleEntryEx)
  161. DLPENTRY(RapGetFieldSize)
  162. DLPENTRY(RapIsValidDescriptorSmb)
  163. DLPENTRY(RapParmNumDescriptor)
  164. DLPENTRY(RapStructureAlignment)
  165. DLPENTRY(RapStructureSize)
  166. DLPENTRY(RapTotalSize)
  167. };
  168. DEFINE_PROCNAME_MAP(netrap)