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.

294 lines
5.6 KiB

  1. #include "compch.h"
  2. #pragma hdrstop
  3. #include <rpcdce.h>
  4. #include <rpcdcep.h>
  5. #include <rpcndr.h>
  6. #include <midles.h>
  7. static
  8. RPCRTAPI
  9. long
  10. RPC_ENTRY
  11. I_RpcMapWin32Status (
  12. IN RPC_STATUS Status
  13. )
  14. {
  15. return ERROR_PROC_NOT_FOUND;
  16. }
  17. static
  18. RPC_STATUS
  19. RPC_ENTRY
  20. MesDecodeIncrementalHandleCreate(
  21. void * UserState,
  22. MIDL_ES_READ ReadFn,
  23. handle_t * pHandle
  24. )
  25. {
  26. return RPC_E_UNEXPECTED;
  27. }
  28. static
  29. RPC_STATUS
  30. RPC_ENTRY
  31. MesEncodeIncrementalHandleCreate(
  32. void * UserState,
  33. MIDL_ES_ALLOC AllocFn,
  34. MIDL_ES_WRITE WriteFn,
  35. handle_t * pHandle
  36. )
  37. {
  38. return RPC_E_UNEXPECTED;
  39. }
  40. static
  41. RPC_STATUS
  42. RPC_ENTRY
  43. MesHandleFree(
  44. handle_t Handle
  45. )
  46. {
  47. return RPC_E_UNEXPECTED;
  48. }
  49. static
  50. RPC_STATUS
  51. RPC_ENTRY
  52. MesIncrementalHandleReset(
  53. handle_t Handle,
  54. void * UserState,
  55. MIDL_ES_ALLOC AllocFn,
  56. MIDL_ES_WRITE WriteFn,
  57. MIDL_ES_READ ReadFn,
  58. MIDL_ES_CODE Operation
  59. )
  60. {
  61. return RPC_E_UNEXPECTED;
  62. }
  63. static
  64. CLIENT_CALL_RETURN
  65. RPC_VAR_ENTRY
  66. NdrClientCall2(
  67. PMIDL_STUB_DESC pStubDescriptor,
  68. PFORMAT_STRING pFormat,
  69. ...
  70. )
  71. {
  72. CLIENT_CALL_RETURN RetVal;
  73. RetVal.Simple = (LONG_PTR) STATUS_PROCEDURE_NOT_FOUND;
  74. return RetVal;
  75. }
  76. static
  77. size_t
  78. RPC_ENTRY
  79. NdrMesTypeAlignSize2(
  80. handle_t Handle,
  81. const MIDL_TYPE_PICKLING_INFO * pPicklingInfo,
  82. const MIDL_STUB_DESC * pStubDesc,
  83. PFORMAT_STRING pFormatString,
  84. const void * pObject
  85. )
  86. {
  87. return 0;
  88. }
  89. static
  90. void
  91. RPC_ENTRY
  92. NdrMesTypeDecode2(
  93. handle_t Handle,
  94. const MIDL_TYPE_PICKLING_INFO * pPicklingInfo,
  95. const MIDL_STUB_DESC * pStubDesc,
  96. PFORMAT_STRING pFormatString,
  97. void * pObject
  98. )
  99. {
  100. return;
  101. }
  102. static
  103. void
  104. RPC_ENTRY
  105. NdrMesTypeEncode2(
  106. handle_t Handle,
  107. const MIDL_TYPE_PICKLING_INFO * pPicklingInfo,
  108. const MIDL_STUB_DESC * pStubDesc,
  109. PFORMAT_STRING pFormatString,
  110. const void * pObject
  111. )
  112. {
  113. return;
  114. }
  115. static
  116. void
  117. RPC_ENTRY
  118. NdrMesTypeFree2(
  119. handle_t Handle,
  120. const MIDL_TYPE_PICKLING_INFO * pxPicklingInfo,
  121. const MIDL_STUB_DESC * pStubDesc,
  122. PFORMAT_STRING pFormat,
  123. void * pObject
  124. )
  125. {
  126. return;
  127. }
  128. static
  129. RPCRTAPI
  130. RPC_STATUS
  131. RPC_ENTRY
  132. RpcBindingFree (
  133. IN OUT RPC_BINDING_HANDLE __RPC_FAR * Binding
  134. )
  135. {
  136. return RPC_E_UNEXPECTED;
  137. }
  138. static
  139. RPCRTAPI
  140. RPC_STATUS
  141. RPC_ENTRY
  142. RpcBindingFromStringBindingW (
  143. IN unsigned short __RPC_FAR * StringBinding,
  144. OUT RPC_BINDING_HANDLE __RPC_FAR * Binding
  145. )
  146. {
  147. return RPC_E_UNEXPECTED;
  148. }
  149. static
  150. RPCRTAPI
  151. RPC_STATUS
  152. RPC_ENTRY
  153. RpcBindingSetAuthInfoExW (
  154. IN RPC_BINDING_HANDLE Binding,
  155. IN unsigned short __RPC_FAR * ServerPrincName,
  156. IN unsigned long AuthnLevel,
  157. IN unsigned long AuthnSvc,
  158. IN RPC_AUTH_IDENTITY_HANDLE AuthIdentity, OPTIONAL
  159. IN unsigned long AuthzSvc, OPTIONAL
  160. IN RPC_SECURITY_QOS *SecurityQOS
  161. )
  162. {
  163. return RPC_E_UNEXPECTED;
  164. }
  165. static
  166. RPCRTAPI
  167. RPC_STATUS
  168. RPC_ENTRY
  169. RpcEpResolveBinding (
  170. IN RPC_BINDING_HANDLE Binding,
  171. IN RPC_IF_HANDLE IfSpec
  172. )
  173. {
  174. return RPC_E_UNEXPECTED;
  175. }
  176. static
  177. RPCRTAPI
  178. void
  179. RPC_ENTRY
  180. RpcSsDestroyClientContext (
  181. IN void * * ContextHandle
  182. )
  183. {
  184. return;
  185. }
  186. static
  187. RPCRTAPI
  188. RPC_STATUS
  189. RPC_ENTRY
  190. RpcStringBindingComposeW (
  191. IN unsigned short __RPC_FAR * ObjUuid OPTIONAL,
  192. IN unsigned short __RPC_FAR * Protseq OPTIONAL,
  193. IN unsigned short __RPC_FAR * NetworkAddr OPTIONAL,
  194. IN unsigned short __RPC_FAR * Endpoint OPTIONAL,
  195. IN unsigned short __RPC_FAR * Options OPTIONAL,
  196. OUT unsigned short __RPC_FAR * __RPC_FAR * StringBinding OPTIONAL
  197. )
  198. {
  199. return RPC_E_UNEXPECTED;
  200. }
  201. static
  202. RPCRTAPI
  203. RPC_STATUS
  204. RPC_ENTRY
  205. RpcStringFreeA (
  206. IN OUT unsigned char __RPC_FAR * __RPC_FAR * String
  207. )
  208. {
  209. return RPC_E_UNEXPECTED;
  210. }
  211. static
  212. RPCRTAPI
  213. RPC_STATUS
  214. RPC_ENTRY
  215. RpcStringFreeW (
  216. IN OUT unsigned short __RPC_FAR * __RPC_FAR * String
  217. )
  218. {
  219. return RPC_E_UNEXPECTED;
  220. }
  221. static
  222. RPC_STATUS
  223. RPC_ENTRY
  224. UuidCreate (
  225. OUT UUID* Uuid
  226. )
  227. {
  228. ZeroMemory(Uuid, sizeof(*Uuid));
  229. return RPC_E_UNEXPECTED;
  230. }
  231. static
  232. RPCRTAPI
  233. RPC_STATUS
  234. RPC_ENTRY
  235. UuidToStringA (
  236. IN UUID __RPC_FAR * Uuid,
  237. OUT unsigned char __RPC_FAR * __RPC_FAR * StringUuid
  238. )
  239. {
  240. return RPC_E_UNEXPECTED;
  241. }
  242. //
  243. // !! WARNING !! The entries below must be in alphabetical order
  244. // and are CASE SENSITIVE (i.e., lower case comes last!)
  245. //
  246. DEFINE_PROCNAME_ENTRIES(rpcrt4)
  247. {
  248. DLPENTRY(I_RpcMapWin32Status)
  249. DLPENTRY(MesDecodeIncrementalHandleCreate)
  250. DLPENTRY(MesEncodeIncrementalHandleCreate)
  251. DLPENTRY(MesHandleFree)
  252. DLPENTRY(MesIncrementalHandleReset)
  253. DLPENTRY(NdrClientCall2)
  254. DLPENTRY(NdrMesTypeAlignSize2)
  255. DLPENTRY(NdrMesTypeDecode2)
  256. DLPENTRY(NdrMesTypeEncode2)
  257. DLPENTRY(NdrMesTypeFree2)
  258. DLPENTRY(RpcBindingFree)
  259. DLPENTRY(RpcBindingFromStringBindingW)
  260. DLPENTRY(RpcBindingSetAuthInfoExW)
  261. DLPENTRY(RpcEpResolveBinding)
  262. DLPENTRY(RpcSsDestroyClientContext)
  263. DLPENTRY(RpcStringBindingComposeW)
  264. DLPENTRY(RpcStringFreeA)
  265. DLPENTRY(RpcStringFreeW)
  266. DLPENTRY(UuidCreate)
  267. DLPENTRY(UuidToStringA)
  268. };
  269. DEFINE_PROCNAME_MAP(rpcrt4)