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.

181 lines
3.3 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. return FALSE;
  100. }
  101. static
  102. LPDESC
  103. RapParmNumDescriptor(
  104. IN LPDESC Descriptor,
  105. IN DWORD ParmNum,
  106. IN RAP_TRANSMISSION_MODE TransmissionMode,
  107. IN BOOL Native
  108. )
  109. {
  110. return NULL;
  111. }
  112. static
  113. DWORD
  114. RapStructureAlignment(
  115. IN LPDESC Descriptor,
  116. IN RAP_TRANSMISSION_MODE TransmissionMode,
  117. IN BOOL Native
  118. )
  119. {
  120. return 0;
  121. }
  122. static
  123. DWORD
  124. RapStructureSize(
  125. IN LPDESC Descriptor,
  126. IN RAP_TRANSMISSION_MODE TransmissionMode,
  127. IN BOOL Native
  128. )
  129. {
  130. return 0;
  131. }
  132. static
  133. DWORD
  134. RapTotalSize(
  135. IN LPBYTE InStructure,
  136. IN LPDESC InStructureDesc,
  137. IN LPDESC OutStructureDesc,
  138. IN BOOL MeaninglessInputPointers,
  139. IN RAP_TRANSMISSION_MODE TransmissionMode,
  140. IN RAP_CONVERSION_MODE ConversionMode
  141. )
  142. {
  143. return 0;
  144. }
  145. //
  146. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  147. //
  148. DEFINE_PROCNAME_ENTRIES(netrap)
  149. {
  150. DLPENTRY(RapArrayLength)
  151. DLPENTRY(RapAsciiToDecimal)
  152. DLPENTRY(RapAuxDataCount)
  153. DLPENTRY(RapAuxDataCountOffset)
  154. DLPENTRY(RapConvertSingleEntry)
  155. DLPENTRY(RapConvertSingleEntryEx)
  156. DLPENTRY(RapGetFieldSize)
  157. DLPENTRY(RapIsValidDescriptorSmb)
  158. DLPENTRY(RapParmNumDescriptor)
  159. DLPENTRY(RapStructureAlignment)
  160. DLPENTRY(RapStructureSize)
  161. DLPENTRY(RapTotalSize)
  162. };
  163. DEFINE_PROCNAME_MAP(netrap)