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.

540 lines
10 KiB

  1. //
  2. // Major ugliness warning:
  3. //
  4. // These are definitions stolen from the 32-bit OLE headers and
  5. // munged to have the word FAR in all of the right places.
  6. //
  7. interface IRpcProxyBuffer;
  8. interface IRpcChannelBuffer;
  9. interface IRpcStubBuffer;
  10. interface IPSFactoryBuffer;
  11. //+-------------------------------------------------------------------------
  12. //
  13. // Microsoft Windows
  14. // Copyright (C) Microsoft Corporation, 1992 - 1995.
  15. //
  16. //
  17. // Contents: Interface header file for IRpcProxyBuffer
  18. //
  19. // History: Created by Microsoft (R) MIDL Compiler Version 1.10.85
  20. //
  21. //--------------------------------------------------------------------------
  22. #ifndef __IRpcProxyBuffer__
  23. #define __IRpcProxyBuffer__
  24. #ifndef _ERROR_STATUS_T_DEFINED
  25. typedef unsigned long error_status_t;
  26. #define _ERROR_STATUS_T_DEFINED
  27. #endif
  28. #ifndef _WCHAR_T_DEFINED
  29. typedef unsigned short wchar_t;
  30. #define _WCHAR_T_DEFINED
  31. #endif
  32. EXTERN_C const IID IID_IRpcProxyBuffer;
  33. #if defined(__cplusplus) && !defined(CINTERFACE)
  34. /* C++ Language Binding */
  35. interface IRpcProxyBuffer : public IUnknown
  36. {
  37. public:
  38. virtual HRESULT STDMETHODCALLTYPE Connect
  39. (
  40. IRpcChannelBuffer FAR *pRpcChannelBuffer
  41. ) = 0;
  42. virtual void STDMETHODCALLTYPE Disconnect
  43. (
  44. void
  45. ) = 0;
  46. };
  47. #else
  48. /* C Language Binding */
  49. typedef struct IRpcProxyBufferVtbl
  50. {
  51. HRESULT (STDMETHODCALLTYPE FAR *QueryInterface)
  52. (
  53. IRpcProxyBuffer FAR * This,
  54. REFIID riid,
  55. void FAR * FAR *ppvObject
  56. );
  57. ULONG (STDMETHODCALLTYPE FAR *AddRef)
  58. (
  59. IRpcProxyBuffer FAR * This
  60. );
  61. ULONG (STDMETHODCALLTYPE FAR *Release)
  62. (
  63. IRpcProxyBuffer FAR * This
  64. );
  65. HRESULT (STDMETHODCALLTYPE FAR *Connect)
  66. (
  67. IRpcProxyBuffer FAR * This,
  68. IRpcChannelBuffer FAR *pRpcChannelBuffer
  69. );
  70. void (STDMETHODCALLTYPE FAR *Disconnect)
  71. (
  72. IRpcProxyBuffer FAR * This
  73. );
  74. } IRpcProxyBufferVtbl;
  75. interface IRpcProxyBuffer
  76. {
  77. IRpcProxyBufferVtbl FAR *lpVtbl;
  78. } ;
  79. #endif
  80. #endif /*__IRpcProxyBuffer__*/
  81. //+-------------------------------------------------------------------------
  82. //
  83. // Microsoft Windows
  84. // Copyright (C) Microsoft Corporation, 1992 - 1995.
  85. //
  86. //
  87. // Contents: Interface header file for IRpcChannelBuffer
  88. //
  89. // History: Created by Microsoft (R) MIDL Compiler Version 1.10.85
  90. //
  91. //--------------------------------------------------------------------------
  92. #ifndef __IRpcChannelBuffer__
  93. #define __IRpcChannelBuffer__
  94. /* Forward declaration */
  95. // typedef interface IRpcChannelBuffer IRpcChannelBuffer;
  96. #ifndef _ERROR_STATUS_T_DEFINED
  97. typedef unsigned long error_status_t;
  98. #define _ERROR_STATUS_T_DEFINED
  99. #endif
  100. #ifndef _WCHAR_T_DEFINED
  101. typedef unsigned short wchar_t;
  102. #define _WCHAR_T_DEFINED
  103. #endif
  104. typedef unsigned long RPCOLEDATAREP;
  105. typedef enum tagRPCFLG
  106. #if 0
  107. {
  108. RPCFLG_ASYNCHRONOUS = 1073741824,
  109. RPCFLG_INPUT_SYNCHRONOUS = 536870912
  110. }
  111. #endif
  112. RPCFLG;
  113. typedef struct tagRPCOLEMESSAGE
  114. {
  115. void FAR *reserved1;
  116. RPCOLEDATAREP dataRepresentation;
  117. void FAR *Buffer;
  118. ULONG cbBuffer;
  119. ULONG iMethod;
  120. void FAR *reserved2[5];
  121. ULONG rpcFlags;
  122. }
  123. RPCOLEMESSAGE;
  124. typedef RPCOLEMESSAGE FAR *PRPCOLEMESSAGE;
  125. EXTERN_C const IID IID_IRpcChannelBuffer;
  126. #if defined(__cplusplus) && !defined(CINTERFACE)
  127. /* C++ Language Binding */
  128. interface IRpcChannelBuffer : public IUnknown
  129. {
  130. public:
  131. virtual HRESULT STDMETHODCALLTYPE GetBuffer
  132. (
  133. RPCOLEMESSAGE FAR *pMessage,
  134. REFIID riid
  135. ) = 0;
  136. virtual HRESULT STDMETHODCALLTYPE SendReceive
  137. (
  138. RPCOLEMESSAGE FAR *pMessage,
  139. ULONG FAR *pStatus
  140. ) = 0;
  141. virtual HRESULT STDMETHODCALLTYPE FreeBuffer
  142. (
  143. RPCOLEMESSAGE FAR *pMessage
  144. ) = 0;
  145. virtual HRESULT STDMETHODCALLTYPE GetDestCtx
  146. (
  147. DWORD FAR *pdwDestContext,
  148. void FAR * FAR *ppvDestContext
  149. ) = 0;
  150. virtual HRESULT STDMETHODCALLTYPE IsConnected
  151. (
  152. void
  153. ) = 0;
  154. };
  155. #else
  156. /* C Language Binding */
  157. typedef struct IRpcChannelBufferVtbl
  158. {
  159. HRESULT (STDMETHODCALLTYPE FAR *QueryInterface)
  160. (
  161. IRpcChannelBuffer FAR * This,
  162. REFIID riid,
  163. void FAR * FAR *ppvObject
  164. );
  165. ULONG (STDMETHODCALLTYPE FAR *AddRef)
  166. (
  167. IRpcChannelBuffer FAR * This
  168. );
  169. ULONG (STDMETHODCALLTYPE FAR *Release)
  170. (
  171. IRpcChannelBuffer FAR * This
  172. );
  173. HRESULT (STDMETHODCALLTYPE FAR *GetBuffer)
  174. (
  175. IRpcChannelBuffer FAR * This,
  176. RPCOLEMESSAGE FAR *pMessage,
  177. REFIID riid
  178. );
  179. HRESULT (STDMETHODCALLTYPE FAR *SendReceive)
  180. (
  181. IRpcChannelBuffer FAR * This,
  182. RPCOLEMESSAGE FAR *pMessage,
  183. ULONG FAR *pStatus
  184. );
  185. HRESULT (STDMETHODCALLTYPE FAR *FreeBuffer)
  186. (
  187. IRpcChannelBuffer FAR * This,
  188. RPCOLEMESSAGE FAR *pMessage
  189. );
  190. HRESULT (STDMETHODCALLTYPE FAR *GetDestCtx)
  191. (
  192. IRpcChannelBuffer FAR * This,
  193. DWORD FAR *pdwDestContext,
  194. void FAR * FAR *ppvDestContext
  195. );
  196. HRESULT (STDMETHODCALLTYPE FAR *IsConnected)
  197. (
  198. IRpcChannelBuffer FAR * This
  199. );
  200. } IRpcChannelBufferVtbl;
  201. interface IRpcChannelBuffer
  202. {
  203. IRpcChannelBufferVtbl FAR *lpVtbl;
  204. } ;
  205. #endif
  206. #endif /*__IRpcChannelBuffer__*/
  207. //+-------------------------------------------------------------------------
  208. //
  209. // Microsoft Windows
  210. // Copyright (C) Microsoft Corporation, 1992 - 1995.
  211. //
  212. //
  213. // Contents: Interface header file for IRpcStubBuffer
  214. //
  215. // History: Created by Microsoft (R) MIDL Compiler Version 1.10.85
  216. //
  217. //--------------------------------------------------------------------------
  218. #ifndef __IRpcStubBuffer__
  219. #define __IRpcStubBuffer__
  220. /* Forward declaration */
  221. // typedef interface IRpcStubBuffer IRpcStubBuffer;
  222. #ifndef _ERROR_STATUS_T_DEFINED
  223. typedef unsigned long error_status_t;
  224. #define _ERROR_STATUS_T_DEFINED
  225. #endif
  226. #ifndef _WCHAR_T_DEFINED
  227. typedef unsigned short wchar_t;
  228. #define _WCHAR_T_DEFINED
  229. #endif
  230. EXTERN_C const IID IID_IRpcStubBuffer;
  231. #if defined(__cplusplus) && !defined(CINTERFACE)
  232. /* C++ Language Binding */
  233. interface IRpcStubBuffer : public IUnknown
  234. {
  235. public:
  236. virtual HRESULT STDMETHODCALLTYPE Connect
  237. (
  238. IUnknown FAR *pUnkServer
  239. ) = 0;
  240. virtual void STDMETHODCALLTYPE Disconnect
  241. (
  242. void
  243. ) = 0;
  244. virtual HRESULT STDMETHODCALLTYPE Invoke
  245. (
  246. RPCOLEMESSAGE FAR *_prpcmsg,
  247. IRpcChannelBuffer FAR *_pRpcChannelBuffer
  248. ) = 0;
  249. virtual IRpcStubBuffer FAR *STDMETHODCALLTYPE IsIIDSupported
  250. (
  251. REFIID riid
  252. ) = 0;
  253. virtual ULONG STDMETHODCALLTYPE CountRefs
  254. (
  255. void
  256. ) = 0;
  257. virtual HRESULT STDMETHODCALLTYPE DebugServerQueryInterface
  258. (
  259. void FAR * FAR *ppv
  260. ) = 0;
  261. virtual void STDMETHODCALLTYPE DebugServerRelease
  262. (
  263. void FAR *pv
  264. ) = 0;
  265. };
  266. #else
  267. /* C Language Binding */
  268. typedef struct IRpcStubBufferVtbl
  269. {
  270. HRESULT (STDMETHODCALLTYPE FAR *QueryInterface)
  271. (
  272. IRpcStubBuffer FAR * This,
  273. REFIID riid,
  274. void FAR * FAR *ppvObject
  275. );
  276. ULONG (STDMETHODCALLTYPE FAR *AddRef)
  277. (
  278. IRpcStubBuffer FAR * This
  279. );
  280. ULONG (STDMETHODCALLTYPE FAR *Release)
  281. (
  282. IRpcStubBuffer FAR * This
  283. );
  284. HRESULT (STDMETHODCALLTYPE FAR *Connect)
  285. (
  286. IRpcStubBuffer FAR * This,
  287. IUnknown FAR *pUnkServer
  288. );
  289. void (STDMETHODCALLTYPE FAR *Disconnect)
  290. (
  291. IRpcStubBuffer FAR * This
  292. );
  293. HRESULT (STDMETHODCALLTYPE FAR *Invoke)
  294. (
  295. IRpcStubBuffer FAR * This,
  296. RPCOLEMESSAGE FAR *_prpcmsg,
  297. IRpcChannelBuffer FAR *_pRpcChannelBuffer
  298. );
  299. IRpcStubBuffer FAR *(STDMETHODCALLTYPE FAR *IsIIDSupported)
  300. (
  301. IRpcStubBuffer FAR * This,
  302. REFIID riid
  303. );
  304. ULONG (STDMETHODCALLTYPE FAR *CountRefs)
  305. (
  306. IRpcStubBuffer FAR * This
  307. );
  308. HRESULT (STDMETHODCALLTYPE FAR *DebugServerQueryInterface)
  309. (
  310. IRpcStubBuffer FAR * This,
  311. void FAR * FAR *ppv
  312. );
  313. void (STDMETHODCALLTYPE FAR *DebugServerRelease)
  314. (
  315. IRpcStubBuffer FAR * This,
  316. void FAR *pv
  317. );
  318. } IRpcStubBufferVtbl;
  319. interface IRpcStubBuffer
  320. {
  321. IRpcStubBufferVtbl FAR *lpVtbl;
  322. } ;
  323. #endif
  324. #endif /*__IRpcStubBuffer__*/
  325. //+-------------------------------------------------------------------------
  326. //
  327. // Microsoft Windows
  328. // Copyright (C) Microsoft Corporation, 1992 - 1995.
  329. //
  330. //
  331. // Contents: Interface header file for IPSFactoryBuffer
  332. //
  333. // History: Created by Microsoft (R) MIDL Compiler Version 1.10.85
  334. //
  335. //--------------------------------------------------------------------------
  336. #ifndef __IPSFactoryBuffer__
  337. #define __IPSFactoryBuffer__
  338. /* Forward declaration */
  339. // typedef interface IPSFactoryBuffer IPSFactoryBuffer;
  340. #ifndef _ERROR_STATUS_T_DEFINED
  341. typedef unsigned long error_status_t;
  342. #define _ERROR_STATUS_T_DEFINED
  343. #endif
  344. #ifndef _WCHAR_T_DEFINED
  345. typedef unsigned short wchar_t;
  346. #define _WCHAR_T_DEFINED
  347. #endif
  348. EXTERN_C const IID IID_IPSFactoryBuffer;
  349. #if defined(__cplusplus) && !defined(CINTERFACE)
  350. /* C++ Language Binding */
  351. interface IPSFactoryBuffer : public IUnknown
  352. {
  353. public:
  354. virtual HRESULT STDMETHODCALLTYPE CreateProxy
  355. (
  356. IUnknown FAR *pUnkOuter,
  357. REFIID riid,
  358. IRpcProxyBuffer FAR * FAR *ppProxy,
  359. void FAR * FAR *ppv
  360. ) = 0;
  361. virtual HRESULT STDMETHODCALLTYPE CreateStub
  362. (
  363. REFIID riid,
  364. IUnknown FAR *pUnkServer,
  365. IRpcStubBuffer FAR * FAR *ppStub
  366. ) = 0;
  367. };
  368. #else
  369. /* C Language Binding */
  370. typedef struct IPSFactoryBufferVtbl
  371. {
  372. HRESULT (STDMETHODCALLTYPE FAR *QueryInterface)
  373. (
  374. IPSFactoryBuffer FAR * This,
  375. REFIID riid,
  376. void FAR * FAR *ppvObject
  377. );
  378. ULONG (STDMETHODCALLTYPE FAR *AddRef)
  379. (
  380. IPSFactoryBuffer FAR * This
  381. );
  382. ULONG (STDMETHODCALLTYPE FAR *Release)
  383. (
  384. IPSFactoryBuffer FAR * This
  385. );
  386. HRESULT (STDMETHODCALLTYPE FAR *CreateProxy)
  387. (
  388. IPSFactoryBuffer FAR * This,
  389. IUnknown FAR *pUnkOuter,
  390. REFIID riid,
  391. IRpcProxyBuffer FAR * FAR *ppProxy,
  392. void FAR * FAR *ppv
  393. );
  394. HRESULT (STDMETHODCALLTYPE FAR *CreateStub)
  395. (
  396. IPSFactoryBuffer FAR * This,
  397. REFIID riid,
  398. IUnknown FAR *pUnkServer,
  399. IRpcStubBuffer FAR * FAR *ppStub
  400. );
  401. } IPSFactoryBufferVtbl;
  402. interface IPSFactoryBuffer
  403. {
  404. IPSFactoryBufferVtbl FAR *lpVtbl;
  405. } ;
  406. #endif
  407. #endif /*__IPSFactoryBuffer__*/