Windows NT 4.0 source code leak
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.

317 lines
9.1 KiB

4 years ago
  1. /* this ALWAYS GENERATED file contains the RPC client stubs */
  2. /* File created by MIDL compiler version 3.00.06 */
  3. /* at Wed Feb 21 19:59:47 1996
  4. */
  5. /* Compiler settings for ..\epmp.idl:
  6. Os, W1, Zp2, env=Dos, ms_ext, c_ext, oldnames
  7. error checks: none
  8. */
  9. //@@MIDL_FILE_HEADING( )
  10. #include <string.h>
  11. #if defined( _ALPHA_ )
  12. #include <stdarg.h>
  13. #endif
  14. #include "epmp.h"
  15. #define TYPE_FORMAT_STRING_SIZE 95
  16. #define PROC_FORMAT_STRING_SIZE 31
  17. typedef struct _MIDL_TYPE_FORMAT_STRING
  18. {
  19. short Pad;
  20. unsigned char Format[ TYPE_FORMAT_STRING_SIZE ];
  21. } MIDL_TYPE_FORMAT_STRING;
  22. typedef struct _MIDL_PROC_FORMAT_STRING
  23. {
  24. short Pad;
  25. unsigned char Format[ PROC_FORMAT_STRING_SIZE ];
  26. } MIDL_PROC_FORMAT_STRING;
  27. extern const MIDL_TYPE_FORMAT_STRING __MIDLTypeFormatString;
  28. extern const MIDL_PROC_FORMAT_STRING __MIDLProcFormatString;
  29. /* Standard interface: epmp, ver. 3.0,
  30. GUID={0xe1af8308,0x5d1f,0x11c9,{0x91,0xa4,0x08,0x00,0x2b,0x14,0xa0,0xfa}} */
  31. handle_t impH;
  32. static const RPC_CLIENT_INTERFACE epmp___RpcClientInterface =
  33. {
  34. sizeof(RPC_CLIENT_INTERFACE),
  35. {{0xe1af8308,0x5d1f,0x11c9,{0x91,0xa4,0x08,0x00,0x2b,0x14,0xa0,0xfa}},{3,0}},
  36. {{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}},
  37. 0,
  38. 0,
  39. 0,
  40. 0,
  41. 0
  42. };
  43. RPC_IF_HANDLE epmp_ClientIfHandle = (RPC_IF_HANDLE)& epmp___RpcClientInterface;
  44. extern const MIDL_STUB_DESC epmp_StubDesc;
  45. static RPC_BINDING_HANDLE epmp__MIDL_AutoBindHandle;
  46. void ept_map(
  47. /* [in] */ handle_t hEpMapper,
  48. /* [full][in] */ UUID __RPC_FAR *obj,
  49. /* [full][in] */ twr_p_t map_tower,
  50. /* [out][in] */ ept_lookup_handle_t __RPC_FAR *entry_handle,
  51. /* [in] */ unsigned32 max_towers,
  52. /* [out] */ unsigned32 __RPC_FAR *num_towers,
  53. /* [length_is][size_is][out] */ twr_p_t __RPC_FAR *ITowers,
  54. /* [out] */ error_status __RPC_FAR *status)
  55. {
  56. RPC_BINDING_HANDLE _Handle = 0;
  57. RPC_MESSAGE _RpcMessage;
  58. MIDL_STUB_MESSAGE _StubMsg;
  59. _StubMsg.FullPtrXlatTables = NdrFullPointerXlatInit(0,XLAT_CLIENT);
  60. RpcTryFinally
  61. {
  62. NdrClientInitializeNew(
  63. ( PRPC_MESSAGE )&_RpcMessage,
  64. ( PMIDL_STUB_MESSAGE )&_StubMsg,
  65. ( PMIDL_STUB_DESC )&epmp_StubDesc,
  66. 3);
  67. _Handle = hEpMapper;
  68. _StubMsg.BufferLength = 0U + 4U + 11U + 27U + 7U;
  69. NdrPointerBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
  70. (unsigned char __RPC_FAR *)obj,
  71. (PFORMAT_STRING) &__MIDLTypeFormatString.Format[0] );
  72. NdrPointerBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
  73. (unsigned char __RPC_FAR *)map_tower,
  74. (PFORMAT_STRING) &__MIDLTypeFormatString.Format[22] );
  75. NdrGetBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg, _StubMsg.BufferLength, _Handle );
  76. NdrPointerMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
  77. (unsigned char __RPC_FAR *)obj,
  78. (PFORMAT_STRING) &__MIDLTypeFormatString.Format[0] );
  79. NdrPointerMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
  80. (unsigned char __RPC_FAR *)map_tower,
  81. (PFORMAT_STRING) &__MIDLTypeFormatString.Format[22] );
  82. NdrClientContextMarshall(
  83. ( PMIDL_STUB_MESSAGE )&_StubMsg,
  84. ( NDR_CCONTEXT )*entry_handle,
  85. 0);
  86. *(( unsigned32 __RPC_FAR * )_StubMsg.Buffer)++ = max_towers;
  87. NdrSendReceive( (PMIDL_STUB_MESSAGE) &_StubMsg, (unsigned char __RPC_FAR *) _StubMsg.Buffer );
  88. if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  89. NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDLProcFormatString.Format[0] );
  90. /* ************************************************************ */
  91. FixupForUniquePointerServers(&_RpcMessage);
  92. /* ************************************************************ */
  93. NdrClientContextUnmarshall(
  94. ( PMIDL_STUB_MESSAGE )&_StubMsg,
  95. ( NDR_CCONTEXT __RPC_FAR * )entry_handle,
  96. _Handle);
  97. *num_towers = *(( unsigned32 __RPC_FAR * )_StubMsg.Buffer)++;
  98. NdrConformantVaryingArrayUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
  99. (unsigned char __RPC_FAR * __RPC_FAR *)&ITowers,
  100. (PFORMAT_STRING) &__MIDLTypeFormatString.Format[60],
  101. (unsigned char)0 );
  102. _StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  103. *status = *(( error_status __RPC_FAR * )_StubMsg.Buffer)++;
  104. }
  105. RpcFinally
  106. {
  107. NdrFullPointerXlatFree(_StubMsg.FullPtrXlatTables);
  108. NdrFreeBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg );
  109. }
  110. RpcEndFinally
  111. }
  112. static const MIDL_STUB_DESC epmp_StubDesc =
  113. {
  114. (void __RPC_FAR *)& epmp___RpcClientInterface,
  115. MIDL_user_allocate,
  116. MIDL_user_free,
  117. &impH,
  118. 0,
  119. 0,
  120. 0,
  121. 0,
  122. __MIDLTypeFormatString.Format,
  123. 0, /* -error bounds_check flag */
  124. 0x10001, /* Ndr library version */
  125. 0,
  126. 0x3000006, /* MIDL Version 3.0.6 */
  127. 0,
  128. 0,
  129. 0, /* Reserved1 */
  130. 0, /* Reserved2 */
  131. 0, /* Reserved3 */
  132. 0, /* Reserved4 */
  133. 0 /* Reserved5 */
  134. };
  135. #if !defined(__RPC_DOS__)
  136. #error Invalid build platform for this stub.
  137. #endif
  138. static const MIDL_PROC_FORMAT_STRING __MIDLProcFormatString =
  139. {
  140. 0,
  141. {
  142. 0x4e, /* FC_IN_PARAM_BASETYPE */
  143. 0xf, /* FC_IGNORE */
  144. /* 2 */
  145. 0x4d, /* FC_IN_PARAM */
  146. 0x2, /* Stack size = 2 */
  147. /* 4 */ NdrFcShort( 0x0 ), /* Type Offset=0 */
  148. /* 6 */
  149. 0x4d, /* FC_IN_PARAM */
  150. 0x2, /* Stack size = 2 */
  151. /* 8 */ NdrFcShort( 0x16 ), /* Type Offset=22 */
  152. /* 10 */
  153. 0x50, /* FC_IN_OUT_PARAM */
  154. 0x2, /* Stack size = 2 */
  155. /* 12 */ NdrFcShort( 0x2c ), /* Type Offset=44 */
  156. /* 14 */ 0x4e, /* FC_IN_PARAM_BASETYPE */
  157. 0x8, /* FC_LONG */
  158. /* 16 */
  159. 0x51, /* FC_OUT_PARAM */
  160. 0x2, /* Stack size = 2 */
  161. /* 18 */ NdrFcShort( 0x34 ), /* Type Offset=52 */
  162. /* 20 */
  163. 0x51, /* FC_OUT_PARAM */
  164. 0x2, /* Stack size = 2 */
  165. /* 22 */ NdrFcShort( 0x38 ), /* Type Offset=56 */
  166. /* 24 */
  167. 0x51, /* FC_OUT_PARAM */
  168. 0x2, /* Stack size = 2 */
  169. /* 26 */ NdrFcShort( 0x34 ), /* Type Offset=52 */
  170. /* 28 */ 0x5b, /* FC_END */
  171. 0x5c, /* FC_PAD */
  172. 0x0
  173. }
  174. };
  175. static const MIDL_TYPE_FORMAT_STRING __MIDLTypeFormatString =
  176. {
  177. 0,
  178. {
  179. 0x14, 0x0, /* FC_FP */
  180. /* 2 */ NdrFcShort( 0x8 ), /* Offset= 8 (10) */
  181. /* 4 */
  182. 0x1d, /* FC_SMFARRAY */
  183. 0x0, /* 0 */
  184. /* 6 */ NdrFcShort( 0x8 ), /* 8 */
  185. /* 8 */ 0x2, /* FC_CHAR */
  186. 0x5b, /* FC_END */
  187. /* 10 */
  188. 0x15, /* FC_STRUCT */
  189. 0x3, /* 3 */
  190. /* 12 */ NdrFcShort( 0x10 ), /* 16 */
  191. /* 14 */ 0x8, /* FC_LONG */
  192. 0x6, /* FC_SHORT */
  193. /* 16 */ 0x6, /* FC_SHORT */
  194. 0x4c, /* FC_EMBEDDED_COMPLEX */
  195. /* 18 */ 0x0, /* 0 */
  196. NdrFcShort( 0xfffffff1 ), /* Offset= -15 (4) */
  197. 0x5b, /* FC_END */
  198. /* 22 */
  199. 0x14, 0x0, /* FC_FP */
  200. /* 24 */ NdrFcShort( 0xc ), /* Offset= 12 (36) */
  201. /* 26 */
  202. 0x1b, /* FC_CARRAY */
  203. 0x0, /* 0 */
  204. /* 28 */ NdrFcShort( 0x1 ), /* 1 */
  205. /* 30 */ 0x8, /* 8 */
  206. 0x0, /* */
  207. /* 32 */ NdrFcShort( 0xfffffffc ), /* -4 */
  208. /* 34 */ 0x1, /* FC_BYTE */
  209. 0x5b, /* FC_END */
  210. /* 36 */
  211. 0x17, /* FC_CSTRUCT */
  212. 0x3, /* 3 */
  213. /* 38 */ NdrFcShort( 0x4 ), /* 4 */
  214. /* 40 */ NdrFcShort( 0xfffffff2 ), /* Offset= -14 (26) */
  215. /* 42 */ 0x8, /* FC_LONG */
  216. 0x5b, /* FC_END */
  217. /* 44 */
  218. 0x11, 0x0, /* FC_RP */
  219. /* 46 */ NdrFcShort( 0x2 ), /* Offset= 2 (48) */
  220. /* 48 */ 0x30, /* FC_BIND_CONTEXT */
  221. 0xe0, /* 224 */
  222. /* 50 */ 0x0, /* 0 */
  223. 0x3, /* 3 */
  224. /* 52 */
  225. 0x11, 0xc, /* FC_RP [alloced_on_stack] [simple_pointer] */
  226. /* 54 */ 0x8, /* FC_LONG */
  227. 0x5c, /* FC_PAD */
  228. /* 56 */
  229. 0x11, 0x0, /* FC_RP */
  230. /* 58 */ NdrFcShort( 0x2 ), /* Offset= 2 (60) */
  231. /* 60 */
  232. 0x1c, /* FC_CVARRAY */
  233. 0x3, /* 3 */
  234. /* 62 */ NdrFcShort( 0x4 ), /* 4 */
  235. /* 64 */ 0x28, /* 40 */
  236. 0x0, /* */
  237. /* 66 */ NdrFcShort( 0x10 ), /* Stack size/offset = 16 */
  238. /* 68 */ 0x28, /* 40 */
  239. 0x54, /* FC_DEREFERENCE */
  240. /* 70 */ NdrFcShort( 0x14 ), /* Stack size/offset = 20 */
  241. /* 72 */
  242. 0x4b, /* FC_PP */
  243. 0x5c, /* FC_PAD */
  244. /* 74 */
  245. 0x48, /* FC_VARIABLE_REPEAT */
  246. 0x4a, /* FC_VARIABLE_OFFSET */
  247. /* 76 */ NdrFcShort( 0x4 ), /* 4 */
  248. /* 78 */ NdrFcShort( 0x0 ), /* 0 */
  249. /* 80 */ NdrFcShort( 0x1 ), /* 1 */
  250. /* 82 */ NdrFcShort( 0x0 ), /* 0 */
  251. /* 84 */ NdrFcShort( 0x0 ), /* 0 */
  252. /* 86 */ 0x14, 0x0, /* FC_FP */
  253. /* 88 */ NdrFcShort( 0xffffffcc ), /* Offset= -52 (36) */
  254. /* 90 */
  255. 0x5b, /* FC_END */
  256. 0x8, /* FC_LONG */
  257. /* 92 */ 0x5c, /* FC_PAD */
  258. 0x5b, /* FC_END */
  259. 0x0
  260. }
  261. };