home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Internet 2000 May / MICD_2000_05.iso / CBuilder5 / INSTALL / DATA1.CAB / Program_Built_Files / Include / oletx2xa.h < prev    next >
C/C++ Source or Header  |  2000-02-01  |  24KB  |  745 lines

  1. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  2.  
  3. #pragma warning( disable: 4049 )  /* more than 64k source lines */
  4.  
  5. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  6.  
  7.  
  8.  /* File created by MIDL compiler version 5.03.0268 */
  9. /* at Wed Aug 04 16:38:59 1999
  10.  */
  11. /* Compiler settings for oletx2xa.idl:
  12.     Oicf (OptLev=i2), W1, Zp8, env=Win32 (32b run), ms_ext, c_ext
  13.     error checks: allocation ref bounds_check enum stub_data 
  14.     VC __declspec() decoration level: 
  15.          __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  16.          DECLSPEC_UUID(), MIDL_INTERFACE()
  17. */
  18. //@@MIDL_FILE_HEADING(  )
  19.  
  20.  
  21. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  22. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  23. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  24. #endif
  25.  
  26. #include "rpc.h"
  27. #include "rpcndr.h"
  28.  
  29. #ifndef __RPCNDR_H_VERSION__
  30. #error this stub requires an updated version of <rpcndr.h>
  31. #endif // __RPCNDR_H_VERSION__
  32.  
  33. #ifndef COM_NO_WINDOWS_H
  34. #include "windows.h"
  35. #include "ole2.h"
  36. #endif /*COM_NO_WINDOWS_H*/
  37.  
  38. #ifndef __oletx2xa_h__
  39. #define __oletx2xa_h__
  40.  
  41. /* Forward Declarations */ 
  42.  
  43. #ifndef __IDtcToXaMapper_FWD_DEFINED__
  44. #define __IDtcToXaMapper_FWD_DEFINED__
  45. typedef interface IDtcToXaMapper IDtcToXaMapper;
  46. #endif     /* __IDtcToXaMapper_FWD_DEFINED__ */
  47.  
  48.  
  49. #ifndef __IDtcToXaHelperFactory_FWD_DEFINED__
  50. #define __IDtcToXaHelperFactory_FWD_DEFINED__
  51. typedef interface IDtcToXaHelperFactory IDtcToXaHelperFactory;
  52. #endif     /* __IDtcToXaHelperFactory_FWD_DEFINED__ */
  53.  
  54.  
  55. #ifndef __IDtcToXaHelper_FWD_DEFINED__
  56. #define __IDtcToXaHelper_FWD_DEFINED__
  57. typedef interface IDtcToXaHelper IDtcToXaHelper;
  58. #endif     /* __IDtcToXaHelper_FWD_DEFINED__ */
  59.  
  60.  
  61. #ifndef __IDtcToXaHelperSinglePipe_FWD_DEFINED__
  62. #define __IDtcToXaHelperSinglePipe_FWD_DEFINED__
  63. typedef interface IDtcToXaHelperSinglePipe IDtcToXaHelperSinglePipe;
  64. #endif     /* __IDtcToXaHelperSinglePipe_FWD_DEFINED__ */
  65.  
  66.  
  67. /* header files for imported files */
  68. #include "unknwn.h"
  69. #include "transact.h"
  70. #include "txcoord.h"
  71. #include "xa.h"
  72.  
  73. #ifdef __cplusplus
  74. extern "C"{
  75. #endif 
  76.  
  77. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  78. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  79.  
  80. /* interface __MIDL_itf_oletx2xa_0000 */
  81. /* [local] */ 
  82.  
  83. //-------------------------------------------------------------------------
  84. //
  85. //  Microsoft Distributed Transaction Coordinator
  86. //  Copyright (C) 1995-1999 Microsoft Corporation.  All rights reserved.
  87. //
  88. //  File: xamapper.h (generated from xamapper.idl)
  89. //
  90. //  Contents: Interfaces and types to map OleTx transaction
  91. //            to XA transaction
  92. //
  93. //--------------------------------------------------------------------------
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100. extern RPC_IF_HANDLE __MIDL_itf_oletx2xa_0000_v0_0_c_ifspec;
  101. extern RPC_IF_HANDLE __MIDL_itf_oletx2xa_0000_v0_0_s_ifspec;
  102.  
  103. #ifndef __XaMapperTypes_INTERFACE_DEFINED__
  104. #define __XaMapperTypes_INTERFACE_DEFINED__
  105.  
  106. /* interface XaMapperTypes */
  107. /* [unique][local] */ 
  108.  
  109. // Typedefs
  110. typedef DWORD XA_SWITCH_FLAGS;
  111.  
  112. // Defines
  113. #define XA_SWITCH_F_DTC        0x00000001
  114. #define XA_FMTID_DTC            0x00445443
  115. #define XA_FMTID_DTC_VER1    0x01445443
  116. // Constants
  117. const XID XID_NULL = {-1,0,0,'\0'};
  118.  
  119.  
  120. extern RPC_IF_HANDLE XaMapperTypes_v0_0_c_ifspec;
  121. extern RPC_IF_HANDLE XaMapperTypes_v0_0_s_ifspec;
  122. #endif /* __XaMapperTypes_INTERFACE_DEFINED__ */
  123.  
  124. #ifndef __XaMapperAPIs_INTERFACE_DEFINED__
  125. #define __XaMapperAPIs_INTERFACE_DEFINED__
  126.  
  127. /* interface XaMapperAPIs */
  128. /* [unique][local] */ 
  129.  
  130. HRESULT __cdecl GetXaSwitch( 
  131.     /* [in] */ XA_SWITCH_FLAGS XaSwitchFlags,
  132.     /* [out] */ xa_switch_t __RPC_FAR *__RPC_FAR *ppXaSwitch);
  133.  
  134.  
  135.  
  136. extern RPC_IF_HANDLE XaMapperAPIs_v0_0_c_ifspec;
  137. extern RPC_IF_HANDLE XaMapperAPIs_v0_0_s_ifspec;
  138. #endif /* __XaMapperAPIs_INTERFACE_DEFINED__ */
  139.  
  140. #ifndef __IDtcToXaMapper_INTERFACE_DEFINED__
  141. #define __IDtcToXaMapper_INTERFACE_DEFINED__
  142.  
  143. /* interface IDtcToXaMapper */
  144. /* [unique][uuid][object] */ 
  145.  
  146.  
  147. EXTERN_C const IID IID_IDtcToXaMapper;
  148.  
  149. #if defined(__cplusplus) && !defined(CINTERFACE)
  150.     
  151.     MIDL_INTERFACE("64FFABE0-7CE9-11d0-8CE6-00C04FDC877E")
  152.     IDtcToXaMapper : public IUnknown
  153.     {
  154.     public:
  155.         virtual HRESULT STDMETHODCALLTYPE RequestNewResourceManager( 
  156.             /* [in] */ char __RPC_FAR *pszDSN,
  157.             /* [in] */ char __RPC_FAR *pszClientDllName,
  158.             /* [out][in] */ DWORD __RPC_FAR *pdwRMCookie) = 0;
  159.         
  160.         virtual HRESULT STDMETHODCALLTYPE TranslateTridToXid( 
  161.             /* [in] */ DWORD __RPC_FAR *pdwITransaction,
  162.             /* [in] */ DWORD dwRMCookie,
  163.             /* [out][in] */ XID __RPC_FAR *pXid) = 0;
  164.         
  165.         virtual HRESULT STDMETHODCALLTYPE EnlistResourceManager( 
  166.             /* [in] */ DWORD dwRMCookie,
  167.             /* [in] */ DWORD __RPC_FAR *pdwITransaction) = 0;
  168.         
  169.         virtual HRESULT STDMETHODCALLTYPE ReleaseResourceManager( 
  170.             /* [in] */ DWORD dwRMCookie) = 0;
  171.         
  172.     };
  173.     
  174. #else     /* C style interface */
  175.  
  176.     typedef struct IDtcToXaMapperVtbl
  177.     {
  178.         BEGIN_INTERFACE
  179.         
  180.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  181.             IDtcToXaMapper __RPC_FAR * This,
  182.             /* [in] */ REFIID riid,
  183.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  184.         
  185.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  186.             IDtcToXaMapper __RPC_FAR * This);
  187.         
  188.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  189.             IDtcToXaMapper __RPC_FAR * This);
  190.         
  191.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *RequestNewResourceManager )( 
  192.             IDtcToXaMapper __RPC_FAR * This,
  193.             /* [in] */ char __RPC_FAR *pszDSN,
  194.             /* [in] */ char __RPC_FAR *pszClientDllName,
  195.             /* [out][in] */ DWORD __RPC_FAR *pdwRMCookie);
  196.         
  197.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *TranslateTridToXid )( 
  198.             IDtcToXaMapper __RPC_FAR * This,
  199.             /* [in] */ DWORD __RPC_FAR *pdwITransaction,
  200.             /* [in] */ DWORD dwRMCookie,
  201.             /* [out][in] */ XID __RPC_FAR *pXid);
  202.         
  203.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *EnlistResourceManager )( 
  204.             IDtcToXaMapper __RPC_FAR * This,
  205.             /* [in] */ DWORD dwRMCookie,
  206.             /* [in] */ DWORD __RPC_FAR *pdwITransaction);
  207.         
  208.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *ReleaseResourceManager )( 
  209.             IDtcToXaMapper __RPC_FAR * This,
  210.             /* [in] */ DWORD dwRMCookie);
  211.         
  212.         END_INTERFACE
  213.     } IDtcToXaMapperVtbl;
  214.  
  215.     interface IDtcToXaMapper
  216.     {
  217.         CONST_VTBL struct IDtcToXaMapperVtbl __RPC_FAR *lpVtbl;
  218.     };
  219.  
  220.     
  221.  
  222. #ifdef COBJMACROS
  223.  
  224.  
  225. #define IDtcToXaMapper_QueryInterface(This,riid,ppvObject)    \
  226.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  227.  
  228. #define IDtcToXaMapper_AddRef(This)    \
  229.     (This)->lpVtbl -> AddRef(This)
  230.  
  231. #define IDtcToXaMapper_Release(This)    \
  232.     (This)->lpVtbl -> Release(This)
  233.  
  234.  
  235. #define IDtcToXaMapper_RequestNewResourceManager(This,pszDSN,pszClientDllName,pdwRMCookie)    \
  236.     (This)->lpVtbl -> RequestNewResourceManager(This,pszDSN,pszClientDllName,pdwRMCookie)
  237.  
  238. #define IDtcToXaMapper_TranslateTridToXid(This,pdwITransaction,dwRMCookie,pXid)    \
  239.     (This)->lpVtbl -> TranslateTridToXid(This,pdwITransaction,dwRMCookie,pXid)
  240.  
  241. #define IDtcToXaMapper_EnlistResourceManager(This,dwRMCookie,pdwITransaction)    \
  242.     (This)->lpVtbl -> EnlistResourceManager(This,dwRMCookie,pdwITransaction)
  243.  
  244. #define IDtcToXaMapper_ReleaseResourceManager(This,dwRMCookie)    \
  245.     (This)->lpVtbl -> ReleaseResourceManager(This,dwRMCookie)
  246.  
  247. #endif /* COBJMACROS */
  248.  
  249.  
  250. #endif     /* C style interface */
  251.  
  252.  
  253.  
  254. HRESULT STDMETHODCALLTYPE IDtcToXaMapper_RequestNewResourceManager_Proxy( 
  255.     IDtcToXaMapper __RPC_FAR * This,
  256.     /* [in] */ char __RPC_FAR *pszDSN,
  257.     /* [in] */ char __RPC_FAR *pszClientDllName,
  258.     /* [out][in] */ DWORD __RPC_FAR *pdwRMCookie);
  259.  
  260.  
  261. void __RPC_STUB IDtcToXaMapper_RequestNewResourceManager_Stub(
  262.     IRpcStubBuffer *This,
  263.     IRpcChannelBuffer *_pRpcChannelBuffer,
  264.     PRPC_MESSAGE _pRpcMessage,
  265.     DWORD *_pdwStubPhase);
  266.  
  267.  
  268. HRESULT STDMETHODCALLTYPE IDtcToXaMapper_TranslateTridToXid_Proxy( 
  269.     IDtcToXaMapper __RPC_FAR * This,
  270.     /* [in] */ DWORD __RPC_FAR *pdwITransaction,
  271.     /* [in] */ DWORD dwRMCookie,
  272.     /* [out][in] */ XID __RPC_FAR *pXid);
  273.  
  274.  
  275. void __RPC_STUB IDtcToXaMapper_TranslateTridToXid_Stub(
  276.     IRpcStubBuffer *This,
  277.     IRpcChannelBuffer *_pRpcChannelBuffer,
  278.     PRPC_MESSAGE _pRpcMessage,
  279.     DWORD *_pdwStubPhase);
  280.  
  281.  
  282. HRESULT STDMETHODCALLTYPE IDtcToXaMapper_EnlistResourceManager_Proxy( 
  283.     IDtcToXaMapper __RPC_FAR * This,
  284.     /* [in] */ DWORD dwRMCookie,
  285.     /* [in] */ DWORD __RPC_FAR *pdwITransaction);
  286.  
  287.  
  288. void __RPC_STUB IDtcToXaMapper_EnlistResourceManager_Stub(
  289.     IRpcStubBuffer *This,
  290.     IRpcChannelBuffer *_pRpcChannelBuffer,
  291.     PRPC_MESSAGE _pRpcMessage,
  292.     DWORD *_pdwStubPhase);
  293.  
  294.  
  295. HRESULT STDMETHODCALLTYPE IDtcToXaMapper_ReleaseResourceManager_Proxy( 
  296.     IDtcToXaMapper __RPC_FAR * This,
  297.     /* [in] */ DWORD dwRMCookie);
  298.  
  299.  
  300. void __RPC_STUB IDtcToXaMapper_ReleaseResourceManager_Stub(
  301.     IRpcStubBuffer *This,
  302.     IRpcChannelBuffer *_pRpcChannelBuffer,
  303.     PRPC_MESSAGE _pRpcMessage,
  304.     DWORD *_pdwStubPhase);
  305.  
  306.  
  307.  
  308. #endif     /* __IDtcToXaMapper_INTERFACE_DEFINED__ */
  309.  
  310.  
  311. #ifndef __IDtcToXaHelperFactory_INTERFACE_DEFINED__
  312. #define __IDtcToXaHelperFactory_INTERFACE_DEFINED__
  313.  
  314. /* interface IDtcToXaHelperFactory */
  315. /* [unique][uuid][object] */ 
  316.  
  317.  
  318. EXTERN_C const IID IID_IDtcToXaHelperFactory;
  319.  
  320. #if defined(__cplusplus) && !defined(CINTERFACE)
  321.     
  322.     MIDL_INTERFACE("A9861610-304A-11d1-9813-00A0C905416E")
  323.     IDtcToXaHelperFactory : public IUnknown
  324.     {
  325.     public:
  326.         virtual HRESULT STDMETHODCALLTYPE Create( 
  327.             /* [in] */ char __RPC_FAR *pszDSN,
  328.             /* [in] */ char __RPC_FAR *pszClientDllName,
  329.             /* [out] */ GUID __RPC_FAR *pguidRm,
  330.             /* [out] */ IDtcToXaHelper __RPC_FAR *__RPC_FAR *ppXaHelper) = 0;
  331.         
  332.     };
  333.     
  334. #else     /* C style interface */
  335.  
  336.     typedef struct IDtcToXaHelperFactoryVtbl
  337.     {
  338.         BEGIN_INTERFACE
  339.         
  340.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  341.             IDtcToXaHelperFactory __RPC_FAR * This,
  342.             /* [in] */ REFIID riid,
  343.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  344.         
  345.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  346.             IDtcToXaHelperFactory __RPC_FAR * This);
  347.         
  348.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  349.             IDtcToXaHelperFactory __RPC_FAR * This);
  350.         
  351.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Create )( 
  352.             IDtcToXaHelperFactory __RPC_FAR * This,
  353.             /* [in] */ char __RPC_FAR *pszDSN,
  354.             /* [in] */ char __RPC_FAR *pszClientDllName,
  355.             /* [out] */ GUID __RPC_FAR *pguidRm,
  356.             /* [out] */ IDtcToXaHelper __RPC_FAR *__RPC_FAR *ppXaHelper);
  357.         
  358.         END_INTERFACE
  359.     } IDtcToXaHelperFactoryVtbl;
  360.  
  361.     interface IDtcToXaHelperFactory
  362.     {
  363.         CONST_VTBL struct IDtcToXaHelperFactoryVtbl __RPC_FAR *lpVtbl;
  364.     };
  365.  
  366.     
  367.  
  368. #ifdef COBJMACROS
  369.  
  370.  
  371. #define IDtcToXaHelperFactory_QueryInterface(This,riid,ppvObject)    \
  372.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  373.  
  374. #define IDtcToXaHelperFactory_AddRef(This)    \
  375.     (This)->lpVtbl -> AddRef(This)
  376.  
  377. #define IDtcToXaHelperFactory_Release(This)    \
  378.     (This)->lpVtbl -> Release(This)
  379.  
  380.  
  381. #define IDtcToXaHelperFactory_Create(This,pszDSN,pszClientDllName,pguidRm,ppXaHelper)    \
  382.     (This)->lpVtbl -> Create(This,pszDSN,pszClientDllName,pguidRm,ppXaHelper)
  383.  
  384. #endif /* COBJMACROS */
  385.  
  386.  
  387. #endif     /* C style interface */
  388.  
  389.  
  390.  
  391. HRESULT STDMETHODCALLTYPE IDtcToXaHelperFactory_Create_Proxy( 
  392.     IDtcToXaHelperFactory __RPC_FAR * This,
  393.     /* [in] */ char __RPC_FAR *pszDSN,
  394.     /* [in] */ char __RPC_FAR *pszClientDllName,
  395.     /* [out] */ GUID __RPC_FAR *pguidRm,
  396.     /* [out] */ IDtcToXaHelper __RPC_FAR *__RPC_FAR *ppXaHelper);
  397.  
  398.  
  399. void __RPC_STUB IDtcToXaHelperFactory_Create_Stub(
  400.     IRpcStubBuffer *This,
  401.     IRpcChannelBuffer *_pRpcChannelBuffer,
  402.     PRPC_MESSAGE _pRpcMessage,
  403.     DWORD *_pdwStubPhase);
  404.  
  405.  
  406.  
  407. #endif     /* __IDtcToXaHelperFactory_INTERFACE_DEFINED__ */
  408.  
  409.  
  410. #ifndef __IDtcToXaHelper_INTERFACE_DEFINED__
  411. #define __IDtcToXaHelper_INTERFACE_DEFINED__
  412.  
  413. /* interface IDtcToXaHelper */
  414. /* [unique][uuid][object] */ 
  415.  
  416.  
  417. EXTERN_C const IID IID_IDtcToXaHelper;
  418.  
  419. #if defined(__cplusplus) && !defined(CINTERFACE)
  420.     
  421.     MIDL_INTERFACE("A9861611-304A-11d1-9813-00A0C905416E")
  422.     IDtcToXaHelper : public IUnknown
  423.     {
  424.     public:
  425.         virtual HRESULT STDMETHODCALLTYPE Close( 
  426.             /* [in] */ BOOL i_fDoRecovery) = 0;
  427.         
  428.         virtual HRESULT STDMETHODCALLTYPE TranslateTridToXid( 
  429.             /* [in] */ ITransaction __RPC_FAR *pITransaction,
  430.             /* [in] */ GUID __RPC_FAR *pguidBqual,
  431.             /* [out] */ XID __RPC_FAR *pXid) = 0;
  432.         
  433.     };
  434.     
  435. #else     /* C style interface */
  436.  
  437.     typedef struct IDtcToXaHelperVtbl
  438.     {
  439.         BEGIN_INTERFACE
  440.         
  441.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  442.             IDtcToXaHelper __RPC_FAR * This,
  443.             /* [in] */ REFIID riid,
  444.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  445.         
  446.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  447.             IDtcToXaHelper __RPC_FAR * This);
  448.         
  449.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  450.             IDtcToXaHelper __RPC_FAR * This);
  451.         
  452.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Close )( 
  453.             IDtcToXaHelper __RPC_FAR * This,
  454.             /* [in] */ BOOL i_fDoRecovery);
  455.         
  456.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *TranslateTridToXid )( 
  457.             IDtcToXaHelper __RPC_FAR * This,
  458.             /* [in] */ ITransaction __RPC_FAR *pITransaction,
  459.             /* [in] */ GUID __RPC_FAR *pguidBqual,
  460.             /* [out] */ XID __RPC_FAR *pXid);
  461.         
  462.         END_INTERFACE
  463.     } IDtcToXaHelperVtbl;
  464.  
  465.     interface IDtcToXaHelper
  466.     {
  467.         CONST_VTBL struct IDtcToXaHelperVtbl __RPC_FAR *lpVtbl;
  468.     };
  469.  
  470.     
  471.  
  472. #ifdef COBJMACROS
  473.  
  474.  
  475. #define IDtcToXaHelper_QueryInterface(This,riid,ppvObject)    \
  476.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  477.  
  478. #define IDtcToXaHelper_AddRef(This)    \
  479.     (This)->lpVtbl -> AddRef(This)
  480.  
  481. #define IDtcToXaHelper_Release(This)    \
  482.     (This)->lpVtbl -> Release(This)
  483.  
  484.  
  485. #define IDtcToXaHelper_Close(This,i_fDoRecovery)    \
  486.     (This)->lpVtbl -> Close(This,i_fDoRecovery)
  487.  
  488. #define IDtcToXaHelper_TranslateTridToXid(This,pITransaction,pguidBqual,pXid)    \
  489.     (This)->lpVtbl -> TranslateTridToXid(This,pITransaction,pguidBqual,pXid)
  490.  
  491. #endif /* COBJMACROS */
  492.  
  493.  
  494. #endif     /* C style interface */
  495.  
  496.  
  497.  
  498. HRESULT STDMETHODCALLTYPE IDtcToXaHelper_Close_Proxy( 
  499.     IDtcToXaHelper __RPC_FAR * This,
  500.     /* [in] */ BOOL i_fDoRecovery);
  501.  
  502.  
  503. void __RPC_STUB IDtcToXaHelper_Close_Stub(
  504.     IRpcStubBuffer *This,
  505.     IRpcChannelBuffer *_pRpcChannelBuffer,
  506.     PRPC_MESSAGE _pRpcMessage,
  507.     DWORD *_pdwStubPhase);
  508.  
  509.  
  510. HRESULT STDMETHODCALLTYPE IDtcToXaHelper_TranslateTridToXid_Proxy( 
  511.     IDtcToXaHelper __RPC_FAR * This,
  512.     /* [in] */ ITransaction __RPC_FAR *pITransaction,
  513.     /* [in] */ GUID __RPC_FAR *pguidBqual,
  514.     /* [out] */ XID __RPC_FAR *pXid);
  515.  
  516.  
  517. void __RPC_STUB IDtcToXaHelper_TranslateTridToXid_Stub(
  518.     IRpcStubBuffer *This,
  519.     IRpcChannelBuffer *_pRpcChannelBuffer,
  520.     PRPC_MESSAGE _pRpcMessage,
  521.     DWORD *_pdwStubPhase);
  522.  
  523.  
  524.  
  525. #endif     /* __IDtcToXaHelper_INTERFACE_DEFINED__ */
  526.  
  527.  
  528. #ifndef __IDtcToXaHelperSinglePipe_INTERFACE_DEFINED__
  529. #define __IDtcToXaHelperSinglePipe_INTERFACE_DEFINED__
  530.  
  531. /* interface IDtcToXaHelperSinglePipe */
  532. /* [local][unique][uuid][object] */ 
  533.  
  534.  
  535. EXTERN_C const IID IID_IDtcToXaHelperSinglePipe;
  536.  
  537. #if defined(__cplusplus) && !defined(CINTERFACE)
  538.     
  539.     MIDL_INTERFACE("47ED4971-53B3-11d1-BBB9-00C04FD658F6")
  540.     IDtcToXaHelperSinglePipe : public IUnknown
  541.     {
  542.     public:
  543.         virtual HRESULT STDMETHODCALLTYPE XARMCreate( 
  544.             /* [string][in] */ char __RPC_FAR *pszDSN,
  545.             /* [string][in] */ char __RPC_FAR *pszClientDll,
  546.             /* [out][in] */ DWORD __RPC_FAR *pdwRMCookie) = 0;
  547.         
  548.         virtual HRESULT STDMETHODCALLTYPE ConvertTridToXID( 
  549.             /* [in] */ DWORD __RPC_FAR *pdwITrans,
  550.             /* [in] */ DWORD dwRMCookie,
  551.             /* [out][in] */ XID __RPC_FAR *pxid) = 0;
  552.         
  553.         virtual HRESULT STDMETHODCALLTYPE EnlistWithRM( 
  554.             /* [in] */ DWORD dwRMCookie,
  555.             /* [in] */ ITransaction __RPC_FAR *i_pITransaction,
  556.             /* [in] */ ITransactionResourceAsync __RPC_FAR *i_pITransRes,
  557.             /* [out] */ ITransactionEnlistmentAsync __RPC_FAR *__RPC_FAR *o_ppITransEnslitment) = 0;
  558.         
  559.         virtual void STDMETHODCALLTYPE ReleaseRMCookie( 
  560.             /* [in] */ DWORD i_dwRMCookie,
  561.             /* [in] */ BOOL i_fNormal) = 0;
  562.         
  563.     };
  564.     
  565. #else     /* C style interface */
  566.  
  567.     typedef struct IDtcToXaHelperSinglePipeVtbl
  568.     {
  569.         BEGIN_INTERFACE
  570.         
  571.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  572.             IDtcToXaHelperSinglePipe __RPC_FAR * This,
  573.             /* [in] */ REFIID riid,
  574.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  575.         
  576.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  577.             IDtcToXaHelperSinglePipe __RPC_FAR * This);
  578.         
  579.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  580.             IDtcToXaHelperSinglePipe __RPC_FAR * This);
  581.         
  582.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *XARMCreate )( 
  583.             IDtcToXaHelperSinglePipe __RPC_FAR * This,
  584.             /* [string][in] */ char __RPC_FAR *pszDSN,
  585.             /* [string][in] */ char __RPC_FAR *pszClientDll,
  586.             /* [out][in] */ DWORD __RPC_FAR *pdwRMCookie);
  587.         
  588.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *ConvertTridToXID )( 
  589.             IDtcToXaHelperSinglePipe __RPC_FAR * This,
  590.             /* [in] */ DWORD __RPC_FAR *pdwITrans,
  591.             /* [in] */ DWORD dwRMCookie,
  592.             /* [out][in] */ XID __RPC_FAR *pxid);
  593.         
  594.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *EnlistWithRM )( 
  595.             IDtcToXaHelperSinglePipe __RPC_FAR * This,
  596.             /* [in] */ DWORD dwRMCookie,
  597.             /* [in] */ ITransaction __RPC_FAR *i_pITransaction,
  598.             /* [in] */ ITransactionResourceAsync __RPC_FAR *i_pITransRes,
  599.             /* [out] */ ITransactionEnlistmentAsync __RPC_FAR *__RPC_FAR *o_ppITransEnslitment);
  600.         
  601.         void ( STDMETHODCALLTYPE __RPC_FAR *ReleaseRMCookie )( 
  602.             IDtcToXaHelperSinglePipe __RPC_FAR * This,
  603.             /* [in] */ DWORD i_dwRMCookie,
  604.             /* [in] */ BOOL i_fNormal);
  605.         
  606.         END_INTERFACE
  607.     } IDtcToXaHelperSinglePipeVtbl;
  608.  
  609.     interface IDtcToXaHelperSinglePipe
  610.     {
  611.         CONST_VTBL struct IDtcToXaHelperSinglePipeVtbl __RPC_FAR *lpVtbl;
  612.     };
  613.  
  614.     
  615.  
  616. #ifdef COBJMACROS
  617.  
  618.  
  619. #define IDtcToXaHelperSinglePipe_QueryInterface(This,riid,ppvObject)    \
  620.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  621.  
  622. #define IDtcToXaHelperSinglePipe_AddRef(This)    \
  623.     (This)->lpVtbl -> AddRef(This)
  624.  
  625. #define IDtcToXaHelperSinglePipe_Release(This)    \
  626.     (This)->lpVtbl -> Release(This)
  627.  
  628.  
  629. #define IDtcToXaHelperSinglePipe_XARMCreate(This,pszDSN,pszClientDll,pdwRMCookie)    \
  630.     (This)->lpVtbl -> XARMCreate(This,pszDSN,pszClientDll,pdwRMCookie)
  631.  
  632. #define IDtcToXaHelperSinglePipe_ConvertTridToXID(This,pdwITrans,dwRMCookie,pxid)    \
  633.     (This)->lpVtbl -> ConvertTridToXID(This,pdwITrans,dwRMCookie,pxid)
  634.  
  635. #define IDtcToXaHelperSinglePipe_EnlistWithRM(This,dwRMCookie,i_pITransaction,i_pITransRes,o_ppITransEnslitment)    \
  636.     (This)->lpVtbl -> EnlistWithRM(This,dwRMCookie,i_pITransaction,i_pITransRes,o_ppITransEnslitment)
  637.  
  638. #define IDtcToXaHelperSinglePipe_ReleaseRMCookie(This,i_dwRMCookie,i_fNormal)    \
  639.     (This)->lpVtbl -> ReleaseRMCookie(This,i_dwRMCookie,i_fNormal)
  640.  
  641. #endif /* COBJMACROS */
  642.  
  643.  
  644. #endif     /* C style interface */
  645.  
  646.  
  647.  
  648. HRESULT STDMETHODCALLTYPE IDtcToXaHelperSinglePipe_XARMCreate_Proxy( 
  649.     IDtcToXaHelperSinglePipe __RPC_FAR * This,
  650.     /* [string][in] */ char __RPC_FAR *pszDSN,
  651.     /* [string][in] */ char __RPC_FAR *pszClientDll,
  652.     /* [out][in] */ DWORD __RPC_FAR *pdwRMCookie);
  653.  
  654.  
  655. void __RPC_STUB IDtcToXaHelperSinglePipe_XARMCreate_Stub(
  656.     IRpcStubBuffer *This,
  657.     IRpcChannelBuffer *_pRpcChannelBuffer,
  658.     PRPC_MESSAGE _pRpcMessage,
  659.     DWORD *_pdwStubPhase);
  660.  
  661.  
  662. HRESULT STDMETHODCALLTYPE IDtcToXaHelperSinglePipe_ConvertTridToXID_Proxy( 
  663.     IDtcToXaHelperSinglePipe __RPC_FAR * This,
  664.     /* [in] */ DWORD __RPC_FAR *pdwITrans,
  665.     /* [in] */ DWORD dwRMCookie,
  666.     /* [out][in] */ XID __RPC_FAR *pxid);
  667.  
  668.  
  669. void __RPC_STUB IDtcToXaHelperSinglePipe_ConvertTridToXID_Stub(
  670.     IRpcStubBuffer *This,
  671.     IRpcChannelBuffer *_pRpcChannelBuffer,
  672.     PRPC_MESSAGE _pRpcMessage,
  673.     DWORD *_pdwStubPhase);
  674.  
  675.  
  676. HRESULT STDMETHODCALLTYPE IDtcToXaHelperSinglePipe_EnlistWithRM_Proxy( 
  677.     IDtcToXaHelperSinglePipe __RPC_FAR * This,
  678.     /* [in] */ DWORD dwRMCookie,
  679.     /* [in] */ ITransaction __RPC_FAR *i_pITransaction,
  680.     /* [in] */ ITransactionResourceAsync __RPC_FAR *i_pITransRes,
  681.     /* [out] */ ITransactionEnlistmentAsync __RPC_FAR *__RPC_FAR *o_ppITransEnslitment);
  682.  
  683.  
  684. void __RPC_STUB IDtcToXaHelperSinglePipe_EnlistWithRM_Stub(
  685.     IRpcStubBuffer *This,
  686.     IRpcChannelBuffer *_pRpcChannelBuffer,
  687.     PRPC_MESSAGE _pRpcMessage,
  688.     DWORD *_pdwStubPhase);
  689.  
  690.  
  691. void STDMETHODCALLTYPE IDtcToXaHelperSinglePipe_ReleaseRMCookie_Proxy( 
  692.     IDtcToXaHelperSinglePipe __RPC_FAR * This,
  693.     /* [in] */ DWORD i_dwRMCookie,
  694.     /* [in] */ BOOL i_fNormal);
  695.  
  696.  
  697. void __RPC_STUB IDtcToXaHelperSinglePipe_ReleaseRMCookie_Stub(
  698.     IRpcStubBuffer *This,
  699.     IRpcChannelBuffer *_pRpcChannelBuffer,
  700.     PRPC_MESSAGE _pRpcMessage,
  701.     DWORD *_pdwStubPhase);
  702.  
  703.  
  704.  
  705. #endif     /* __IDtcToXaHelperSinglePipe_INTERFACE_DEFINED__ */
  706.  
  707.  
  708. /* interface __MIDL_itf_oletx2xa_0112 */
  709. /* [local] */ 
  710.  
  711.  
  712.  
  713. #if _MSC_VER < 1100 || !defined(__cplusplus)
  714.  
  715. DEFINE_GUID(IID_IDtcToXaMapper, 0x64FFABE0, 0x7CE9, 0x11d0, 0x8C, 0xE6, 0x00, 0xC0, 0x4F, 0xDC, 0x87, 0x7E);
  716. DEFINE_GUID(IID_IDtcToXaHelperFactory, 0xadefc46a, 0xcb1d, 0x11d0, 0xb1, 0x35, 0x00, 0xc0, 0x4f, 0xc2, 0xf3, 0xef);
  717. DEFINE_GUID(IID_IDtcToXaHelper, 0xadefc46b, 0xcb1d, 0x11d0, 0xb1, 0x35, 0x00, 0xc0, 0x4f, 0xc2, 0xf3, 0xef);
  718. DEFINE_GUID(IID_IDtcToXaHelperSinglePipe,        0x47ED4971, 0x53B3, 0x11d1, 0xBB, 0xB9, 0x00, 0xC0, 0x4F, 0xD6, 0x58, 0xF6);
  719.  
  720. #else
  721.  
  722. #define  IID_IDtcToXaMapper                            __uuidof(IDtcToXaMapper)
  723. #define  IID_IDtcToXaHelperFactory                    __uuidof(IDtcToXaHelperFactory)
  724. #define  IID_IDtcToXaHelper                            __uuidof(IDtcToXaHelper)
  725. #define  IID_IDtcToXaHelperSinglePipe                __uuidof(IDtcToXaHelperSinglePipe)
  726.  
  727. #endif
  728.  
  729.  
  730. extern RPC_IF_HANDLE __MIDL_itf_oletx2xa_0112_v0_0_c_ifspec;
  731. extern RPC_IF_HANDLE __MIDL_itf_oletx2xa_0112_v0_0_s_ifspec;
  732.  
  733. /* Additional Prototypes for ALL interfaces */
  734.  
  735. /* end of Additional Prototypes */
  736.  
  737. #ifdef __cplusplus
  738. }
  739. #endif
  740.  
  741. #endif
  742.  
  743.  
  744. #pragma option pop /*P_O_Pop*/
  745.