home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2000 March / VPR0003B.ISO / alpha / txctx.h < prev    next >
C/C++ Source or Header  |  1999-10-14  |  14KB  |  448 lines

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2.  
  3.  
  4. /* File created by MIDL compiler version 3.01.75 */
  5. /* at Tue Aug 18 16:09:33 1998
  6.  */
  7. /* Compiler settings for txctx.idl:
  8.     Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext
  9.     error checks: none
  10. */
  11. //@@MIDL_FILE_HEADING(  )
  12. #include "rpc.h"
  13. #include "rpcndr.h"
  14. #ifndef COM_NO_WINDOWS_H
  15. #include "windows.h"
  16. #include "ole2.h"
  17. #endif /*COM_NO_WINDOWS_H*/
  18.  
  19. #ifndef __txctx_h__
  20. #define __txctx_h__
  21.  
  22. #ifdef __cplusplus
  23. extern "C"{
  24. #endif 
  25.  
  26. /* Forward Declarations */ 
  27.  
  28. #ifndef __ITransactionContextEx_FWD_DEFINED__
  29. #define __ITransactionContextEx_FWD_DEFINED__
  30. typedef interface ITransactionContextEx ITransactionContextEx;
  31. #endif     /* __ITransactionContextEx_FWD_DEFINED__ */
  32.  
  33.  
  34. #ifndef __ITransactionContext_FWD_DEFINED__
  35. #define __ITransactionContext_FWD_DEFINED__
  36. typedef interface ITransactionContext ITransactionContext;
  37. #endif     /* __ITransactionContext_FWD_DEFINED__ */
  38.  
  39.  
  40. #ifndef __TransactionContext_FWD_DEFINED__
  41. #define __TransactionContext_FWD_DEFINED__
  42.  
  43. #ifdef __cplusplus
  44. typedef class TransactionContext TransactionContext;
  45. #else
  46. typedef struct TransactionContext TransactionContext;
  47. #endif /* __cplusplus */
  48.  
  49. #endif     /* __TransactionContext_FWD_DEFINED__ */
  50.  
  51.  
  52. #ifndef __TransactionContextEx_FWD_DEFINED__
  53. #define __TransactionContextEx_FWD_DEFINED__
  54.  
  55. #ifdef __cplusplus
  56. typedef class TransactionContextEx TransactionContextEx;
  57. #else
  58. typedef struct TransactionContextEx TransactionContextEx;
  59. #endif /* __cplusplus */
  60.  
  61. #endif     /* __TransactionContextEx_FWD_DEFINED__ */
  62.  
  63.  
  64. /* header files for imported files */
  65. #include "oaidl.h"
  66.  
  67. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  68. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  69.  
  70. /****************************************
  71.  * Generated header for interface: __MIDL_itf_txctx_0000
  72.  * at Tue Aug 18 16:09:33 1998
  73.  * using MIDL 3.01.75
  74.  ****************************************/
  75. /* [local] */ 
  76.  
  77.  
  78. // -----------------------------------------------------------------------    
  79. // txctx.h  -- Microsoft Transaction Server Transaction Context Interfaces    
  80. //                                                                            
  81. // This file provides the COM interfaces for the Microsoft Transaction        
  82. // Server Transaction Context Object.                                        
  83. //                                                                            
  84. // Microsoft Transaction Server 2.0                                            
  85. // Copyright (c) 1996-1997 Microsoft Corporation.  All Rights Reserved.        
  86. // -----------------------------------------------------------------------    
  87.  
  88.  
  89. extern RPC_IF_HANDLE __MIDL_itf_txctx_0000_v0_0_c_ifspec;
  90. extern RPC_IF_HANDLE __MIDL_itf_txctx_0000_v0_0_s_ifspec;
  91.  
  92. #ifndef __ITransactionContextEx_INTERFACE_DEFINED__
  93. #define __ITransactionContextEx_INTERFACE_DEFINED__
  94.  
  95. /****************************************
  96.  * Generated header for interface: ITransactionContextEx
  97.  * at Tue Aug 18 16:09:33 1998
  98.  * using MIDL 3.01.75
  99.  ****************************************/
  100. /* [unique][helpcontext][helpstring][uuid][object] */ 
  101.  
  102.  
  103.  
  104. EXTERN_C const IID IID_ITransactionContextEx;
  105.  
  106. #if defined(__cplusplus) && !defined(CINTERFACE)
  107.     
  108.     interface DECLSPEC_UUID("7999FC22-D3C6-11CF-ACAB-00A024A55AEF")
  109.     ITransactionContextEx : public IUnknown
  110.     {
  111.     public:
  112.         virtual /* [helpstring][helpcontext] */ HRESULT STDMETHODCALLTYPE CreateInstance( 
  113.             /* [in] */ REFCLSID cid,
  114.             /* [in] */ REFIID rid,
  115.             /* [iid_is][retval][out] */ void __RPC_FAR *__RPC_FAR *pObject) = 0;
  116.         
  117.         virtual /* [helpstring][helpcontext] */ HRESULT STDMETHODCALLTYPE Commit( void) = 0;
  118.         
  119.         virtual /* [helpstring][helpcontext] */ HRESULT STDMETHODCALLTYPE Abort( void) = 0;
  120.         
  121.     };
  122.     
  123. #else     /* C style interface */
  124.  
  125.     typedef struct ITransactionContextExVtbl
  126.     {
  127.         BEGIN_INTERFACE
  128.         
  129.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  130.             ITransactionContextEx __RPC_FAR * This,
  131.             /* [in] */ REFIID riid,
  132.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  133.         
  134.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  135.             ITransactionContextEx __RPC_FAR * This);
  136.         
  137.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  138.             ITransactionContextEx __RPC_FAR * This);
  139.         
  140.         /* [helpstring][helpcontext] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *CreateInstance )( 
  141.             ITransactionContextEx __RPC_FAR * This,
  142.             /* [in] */ REFCLSID cid,
  143.             /* [in] */ REFIID rid,
  144.             /* [iid_is][retval][out] */ void __RPC_FAR *__RPC_FAR *pObject);
  145.         
  146.         /* [helpstring][helpcontext] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Commit )( 
  147.             ITransactionContextEx __RPC_FAR * This);
  148.         
  149.         /* [helpstring][helpcontext] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Abort )( 
  150.             ITransactionContextEx __RPC_FAR * This);
  151.         
  152.         END_INTERFACE
  153.     } ITransactionContextExVtbl;
  154.  
  155.     interface ITransactionContextEx
  156.     {
  157.         CONST_VTBL struct ITransactionContextExVtbl __RPC_FAR *lpVtbl;
  158.     };
  159.  
  160.     
  161.  
  162. #ifdef COBJMACROS
  163.  
  164.  
  165. #define ITransactionContextEx_QueryInterface(This,riid,ppvObject)    \
  166.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  167.  
  168. #define ITransactionContextEx_AddRef(This)    \
  169.     (This)->lpVtbl -> AddRef(This)
  170.  
  171. #define ITransactionContextEx_Release(This)    \
  172.     (This)->lpVtbl -> Release(This)
  173.  
  174.  
  175. #define ITransactionContextEx_CreateInstance(This,cid,rid,pObject)    \
  176.     (This)->lpVtbl -> CreateInstance(This,cid,rid,pObject)
  177.  
  178. #define ITransactionContextEx_Commit(This)    \
  179.     (This)->lpVtbl -> Commit(This)
  180.  
  181. #define ITransactionContextEx_Abort(This)    \
  182.     (This)->lpVtbl -> Abort(This)
  183.  
  184. #endif /* COBJMACROS */
  185.  
  186.  
  187. #endif     /* C style interface */
  188.  
  189.  
  190.  
  191. /* [helpstring][helpcontext] */ HRESULT STDMETHODCALLTYPE ITransactionContextEx_CreateInstance_Proxy( 
  192.     ITransactionContextEx __RPC_FAR * This,
  193.     /* [in] */ REFCLSID cid,
  194.     /* [in] */ REFIID rid,
  195.     /* [iid_is][retval][out] */ void __RPC_FAR *__RPC_FAR *pObject);
  196.  
  197.  
  198. void __RPC_STUB ITransactionContextEx_CreateInstance_Stub(
  199.     IRpcStubBuffer *This,
  200.     IRpcChannelBuffer *_pRpcChannelBuffer,
  201.     PRPC_MESSAGE _pRpcMessage,
  202.     DWORD *_pdwStubPhase);
  203.  
  204.  
  205. /* [helpstring][helpcontext] */ HRESULT STDMETHODCALLTYPE ITransactionContextEx_Commit_Proxy( 
  206.     ITransactionContextEx __RPC_FAR * This);
  207.  
  208.  
  209. void __RPC_STUB ITransactionContextEx_Commit_Stub(
  210.     IRpcStubBuffer *This,
  211.     IRpcChannelBuffer *_pRpcChannelBuffer,
  212.     PRPC_MESSAGE _pRpcMessage,
  213.     DWORD *_pdwStubPhase);
  214.  
  215.  
  216. /* [helpstring][helpcontext] */ HRESULT STDMETHODCALLTYPE ITransactionContextEx_Abort_Proxy( 
  217.     ITransactionContextEx __RPC_FAR * This);
  218.  
  219.  
  220. void __RPC_STUB ITransactionContextEx_Abort_Stub(
  221.     IRpcStubBuffer *This,
  222.     IRpcChannelBuffer *_pRpcChannelBuffer,
  223.     PRPC_MESSAGE _pRpcMessage,
  224.     DWORD *_pdwStubPhase);
  225.  
  226.  
  227.  
  228. #endif     /* __ITransactionContextEx_INTERFACE_DEFINED__ */
  229.  
  230.  
  231.  
  232. #ifndef __TxCTx_LIBRARY_DEFINED__
  233. #define __TxCTx_LIBRARY_DEFINED__
  234.  
  235. /****************************************
  236.  * Generated header for library: TxCTx
  237.  * at Tue Aug 18 16:09:33 1998
  238.  * using MIDL 3.01.75
  239.  ****************************************/
  240. /* [helpfile][helpstring][version][uuid] */ 
  241.  
  242.  
  243.  
  244. EXTERN_C const IID LIBID_TxCTx;
  245.  
  246. #ifndef __ITransactionContext_INTERFACE_DEFINED__
  247. #define __ITransactionContext_INTERFACE_DEFINED__
  248.  
  249. /****************************************
  250.  * Generated header for interface: ITransactionContext
  251.  * at Tue Aug 18 16:09:33 1998
  252.  * using MIDL 3.01.75
  253.  ****************************************/
  254. /* [unique][helpcontext][helpstring][dual][uuid][object] */ 
  255.  
  256.  
  257.  
  258. EXTERN_C const IID IID_ITransactionContext;
  259.  
  260. #if defined(__cplusplus) && !defined(CINTERFACE)
  261.     
  262.     interface DECLSPEC_UUID("7999FC21-D3C6-11CF-ACAB-00A024A55AEF")
  263.     ITransactionContext : public IDispatch
  264.     {
  265.     public:
  266.         virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE CreateInstance( 
  267.             /* [in] */ BSTR pszProgId,
  268.             /* [retval][out] */ VARIANT __RPC_FAR *pObject) = 0;
  269.         
  270.         virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE Commit( void) = 0;
  271.         
  272.         virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE Abort( void) = 0;
  273.         
  274.     };
  275.     
  276. #else     /* C style interface */
  277.  
  278.     typedef struct ITransactionContextVtbl
  279.     {
  280.         BEGIN_INTERFACE
  281.         
  282.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  283.             ITransactionContext __RPC_FAR * This,
  284.             /* [in] */ REFIID riid,
  285.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  286.         
  287.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  288.             ITransactionContext __RPC_FAR * This);
  289.         
  290.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  291.             ITransactionContext __RPC_FAR * This);
  292.         
  293.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
  294.             ITransactionContext __RPC_FAR * This,
  295.             /* [out] */ UINT __RPC_FAR *pctinfo);
  296.         
  297.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
  298.             ITransactionContext __RPC_FAR * This,
  299.             /* [in] */ UINT iTInfo,
  300.             /* [in] */ LCID lcid,
  301.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  302.         
  303.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
  304.             ITransactionContext __RPC_FAR * This,
  305.             /* [in] */ REFIID riid,
  306.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  307.             /* [in] */ UINT cNames,
  308.             /* [in] */ LCID lcid,
  309.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  310.         
  311.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
  312.             ITransactionContext __RPC_FAR * This,
  313.             /* [in] */ DISPID dispIdMember,
  314.             /* [in] */ REFIID riid,
  315.             /* [in] */ LCID lcid,
  316.             /* [in] */ WORD wFlags,
  317.             /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  318.             /* [out] */ VARIANT __RPC_FAR *pVarResult,
  319.             /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  320.             /* [out] */ UINT __RPC_FAR *puArgErr);
  321.         
  322.         /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *CreateInstance )( 
  323.             ITransactionContext __RPC_FAR * This,
  324.             /* [in] */ BSTR pszProgId,
  325.             /* [retval][out] */ VARIANT __RPC_FAR *pObject);
  326.         
  327.         /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Commit )( 
  328.             ITransactionContext __RPC_FAR * This);
  329.         
  330.         /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Abort )( 
  331.             ITransactionContext __RPC_FAR * This);
  332.         
  333.         END_INTERFACE
  334.     } ITransactionContextVtbl;
  335.  
  336.     interface ITransactionContext
  337.     {
  338.         CONST_VTBL struct ITransactionContextVtbl __RPC_FAR *lpVtbl;
  339.     };
  340.  
  341.     
  342.  
  343. #ifdef COBJMACROS
  344.  
  345.  
  346. #define ITransactionContext_QueryInterface(This,riid,ppvObject)    \
  347.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  348.  
  349. #define ITransactionContext_AddRef(This)    \
  350.     (This)->lpVtbl -> AddRef(This)
  351.  
  352. #define ITransactionContext_Release(This)    \
  353.     (This)->lpVtbl -> Release(This)
  354.  
  355.  
  356. #define ITransactionContext_GetTypeInfoCount(This,pctinfo)    \
  357.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  358.  
  359. #define ITransactionContext_GetTypeInfo(This,iTInfo,lcid,ppTInfo)    \
  360.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  361.  
  362. #define ITransactionContext_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)    \
  363.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  364.  
  365. #define ITransactionContext_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)    \
  366.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  367.  
  368.  
  369. #define ITransactionContext_CreateInstance(This,pszProgId,pObject)    \
  370.     (This)->lpVtbl -> CreateInstance(This,pszProgId,pObject)
  371.  
  372. #define ITransactionContext_Commit(This)    \
  373.     (This)->lpVtbl -> Commit(This)
  374.  
  375. #define ITransactionContext_Abort(This)    \
  376.     (This)->lpVtbl -> Abort(This)
  377.  
  378. #endif /* COBJMACROS */
  379.  
  380.  
  381. #endif     /* C style interface */
  382.  
  383.  
  384.  
  385. /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE ITransactionContext_CreateInstance_Proxy( 
  386.     ITransactionContext __RPC_FAR * This,
  387.     /* [in] */ BSTR pszProgId,
  388.     /* [retval][out] */ VARIANT __RPC_FAR *pObject);
  389.  
  390.  
  391. void __RPC_STUB ITransactionContext_CreateInstance_Stub(
  392.     IRpcStubBuffer *This,
  393.     IRpcChannelBuffer *_pRpcChannelBuffer,
  394.     PRPC_MESSAGE _pRpcMessage,
  395.     DWORD *_pdwStubPhase);
  396.  
  397.  
  398. /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE ITransactionContext_Commit_Proxy( 
  399.     ITransactionContext __RPC_FAR * This);
  400.  
  401.  
  402. void __RPC_STUB ITransactionContext_Commit_Stub(
  403.     IRpcStubBuffer *This,
  404.     IRpcChannelBuffer *_pRpcChannelBuffer,
  405.     PRPC_MESSAGE _pRpcMessage,
  406.     DWORD *_pdwStubPhase);
  407.  
  408.  
  409. /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE ITransactionContext_Abort_Proxy( 
  410.     ITransactionContext __RPC_FAR * This);
  411.  
  412.  
  413. void __RPC_STUB ITransactionContext_Abort_Stub(
  414.     IRpcStubBuffer *This,
  415.     IRpcChannelBuffer *_pRpcChannelBuffer,
  416.     PRPC_MESSAGE _pRpcMessage,
  417.     DWORD *_pdwStubPhase);
  418.  
  419.  
  420.  
  421. #endif     /* __ITransactionContext_INTERFACE_DEFINED__ */
  422.  
  423.  
  424. #ifdef __cplusplus
  425. EXTERN_C const CLSID CLSID_TransactionContext;
  426.  
  427. class DECLSPEC_UUID("7999FC25-D3C6-11CF-ACAB-00A024A55AEF")
  428. TransactionContext;
  429. #endif
  430.  
  431. #ifdef __cplusplus
  432. EXTERN_C const CLSID CLSID_TransactionContextEx;
  433.  
  434. class DECLSPEC_UUID("5cb66670-d3d4-11cf-acab-00a024a55aef")
  435. TransactionContextEx;
  436. #endif
  437. #endif /* __TxCTx_LIBRARY_DEFINED__ */
  438.  
  439. /* Additional Prototypes for ALL interfaces */
  440.  
  441. /* end of Additional Prototypes */
  442.  
  443. #ifdef __cplusplus
  444. }
  445. #endif
  446.  
  447. #endif
  448.