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.

265 lines
6.1 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. ndrlibp.h
  5. Abstract:
  6. Private header file for ndrlib
  7. Author:
  8. Mike Zoran (mzoran) 09-Nov-1990
  9. Revision History:
  10. --*/
  11. #if defined(__cplusplus)
  12. extern "C" {
  13. #endif
  14. /****************************************************************************
  15. Ndr Library helper function prototypes for MIDL 1.0 ndr functions.
  16. ****************************************************************************/
  17. RPCRTAPI
  18. void
  19. RPC_ENTRY
  20. NDRcopy (
  21. IN void __RPC_FAR *pTarget,
  22. IN void __RPC_FAR *pSource,
  23. IN unsigned int size
  24. );
  25. RPCRTAPI
  26. size_t
  27. RPC_ENTRY
  28. MIDL_wchar_strlen (
  29. IN wchar_t __RPC_FAR * s
  30. );
  31. RPCRTAPI
  32. void
  33. RPC_ENTRY
  34. MIDL_wchar_strcpy (
  35. OUT void __RPC_FAR * t,
  36. IN wchar_t __RPC_FAR * s
  37. );
  38. RPCRTAPI
  39. void
  40. RPC_ENTRY
  41. char_from_ndr (
  42. IN OUT PRPC_MESSAGE SourceMessage,
  43. OUT unsigned char __RPC_FAR * Target
  44. );
  45. RPCRTAPI
  46. void
  47. RPC_ENTRY
  48. char_array_from_ndr (
  49. IN OUT PRPC_MESSAGE SourceMessage,
  50. IN unsigned long LowerIndex,
  51. IN unsigned long UpperIndex,
  52. OUT unsigned char __RPC_FAR * Target
  53. );
  54. RPCRTAPI
  55. void
  56. RPC_ENTRY
  57. short_from_ndr (
  58. IN OUT PRPC_MESSAGE source,
  59. OUT unsigned short __RPC_FAR * target
  60. );
  61. RPCRTAPI
  62. void
  63. RPC_ENTRY
  64. short_array_from_ndr(
  65. IN OUT PRPC_MESSAGE SourceMessage,
  66. IN unsigned long LowerIndex,
  67. IN unsigned long UpperIndex,
  68. OUT unsigned short __RPC_FAR * Target
  69. );
  70. RPCRTAPI
  71. void
  72. RPC_ENTRY
  73. short_from_ndr_temp (
  74. IN OUT unsigned char __RPC_FAR * __RPC_FAR * source,
  75. OUT unsigned short __RPC_FAR * target,
  76. IN unsigned long format
  77. );
  78. RPCRTAPI
  79. void
  80. RPC_ENTRY
  81. long_from_ndr (
  82. IN OUT PRPC_MESSAGE source,
  83. OUT unsigned long __RPC_FAR * target
  84. );
  85. RPCRTAPI
  86. void
  87. RPC_ENTRY
  88. long_array_from_ndr(
  89. IN OUT PRPC_MESSAGE SourceMessage,
  90. IN unsigned long LowerIndex,
  91. IN unsigned long UpperIndex,
  92. OUT unsigned long __RPC_FAR * Target
  93. );
  94. RPCRTAPI
  95. void
  96. RPC_ENTRY
  97. long_from_ndr_temp (
  98. IN OUT unsigned char __RPC_FAR * __RPC_FAR * source,
  99. OUT unsigned long __RPC_FAR * target,
  100. IN unsigned long format
  101. );
  102. RPCRTAPI
  103. void
  104. RPC_ENTRY
  105. enum_from_ndr(
  106. IN OUT PRPC_MESSAGE SourceMessage,
  107. OUT unsigned int __RPC_FAR * Target
  108. );
  109. RPCRTAPI
  110. void
  111. RPC_ENTRY
  112. float_from_ndr (
  113. IN OUT PRPC_MESSAGE SourceMessage,
  114. OUT void __RPC_FAR * Target
  115. );
  116. RPCRTAPI
  117. void
  118. RPC_ENTRY
  119. float_array_from_ndr (
  120. IN OUT PRPC_MESSAGE SourceMessage,
  121. IN unsigned long LowerIndex,
  122. IN unsigned long UpperIndex,
  123. OUT void __RPC_FAR * Target
  124. );
  125. RPCRTAPI
  126. void
  127. RPC_ENTRY
  128. double_from_ndr (
  129. IN OUT PRPC_MESSAGE SourceMessage,
  130. OUT void __RPC_FAR * Target
  131. );
  132. RPCRTAPI
  133. void
  134. RPC_ENTRY
  135. double_array_from_ndr (
  136. IN OUT PRPC_MESSAGE SourceMessage,
  137. IN unsigned long LowerIndex,
  138. IN unsigned long UpperIndex,
  139. OUT void __RPC_FAR * Target
  140. );
  141. RPCRTAPI
  142. void
  143. RPC_ENTRY
  144. hyper_from_ndr (
  145. IN OUT PRPC_MESSAGE source,
  146. OUT hyper __RPC_FAR * target
  147. );
  148. RPCRTAPI
  149. void
  150. RPC_ENTRY
  151. hyper_array_from_ndr(
  152. IN OUT PRPC_MESSAGE SourceMessage,
  153. IN unsigned long LowerIndex,
  154. IN unsigned long UpperIndex,
  155. OUT hyper __RPC_FAR * Target
  156. );
  157. RPCRTAPI
  158. void
  159. RPC_ENTRY
  160. hyper_from_ndr_temp (
  161. IN OUT unsigned char __RPC_FAR * __RPC_FAR * source,
  162. OUT hyper __RPC_FAR * target,
  163. IN unsigned long format
  164. );
  165. RPCRTAPI
  166. void
  167. RPC_ENTRY
  168. data_from_ndr (
  169. PRPC_MESSAGE source,
  170. void __RPC_FAR * target,
  171. char __RPC_FAR * format,
  172. unsigned char MscPak
  173. );
  174. RPCRTAPI
  175. void
  176. RPC_ENTRY
  177. data_into_ndr (
  178. void __RPC_FAR * source,
  179. PRPC_MESSAGE target,
  180. char __RPC_FAR * format,
  181. unsigned char MscPak
  182. );
  183. RPCRTAPI
  184. void
  185. RPC_ENTRY
  186. tree_into_ndr (
  187. void __RPC_FAR * source,
  188. PRPC_MESSAGE target,
  189. char __RPC_FAR * format,
  190. unsigned char MscPak
  191. );
  192. RPCRTAPI
  193. void
  194. RPC_ENTRY
  195. data_size_ndr (
  196. void __RPC_FAR * source,
  197. PRPC_MESSAGE target,
  198. char __RPC_FAR * format,
  199. unsigned char MscPak
  200. );
  201. RPCRTAPI
  202. void
  203. RPC_ENTRY
  204. tree_size_ndr (
  205. void __RPC_FAR * source,
  206. PRPC_MESSAGE target,
  207. char __RPC_FAR * format,
  208. unsigned char MscPak
  209. );
  210. RPCRTAPI
  211. void
  212. RPC_ENTRY
  213. tree_peek_ndr (
  214. PRPC_MESSAGE source,
  215. unsigned char __RPC_FAR * __RPC_FAR * buffer,
  216. char __RPC_FAR * format,
  217. unsigned char MscPak
  218. );
  219. RPCRTAPI
  220. void __RPC_FAR *
  221. RPC_ENTRY
  222. midl_allocate (
  223. size_t size
  224. );
  225. #if defined(__cplusplus)
  226. }
  227. #endif