home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 February
/
CHIP_2_98.iso
/
software
/
pelne
/
optionp
/
mts4.cab
/
oletx2xa.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-11-14
|
17KB
|
567 lines
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 3.01.75 */
/* at Fri Nov 14 05:07:18 1997
*/
/* Compiler settings for oletx2xa.idl:
Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext
error checks: none
*/
//@@MIDL_FILE_HEADING( )
#include "rpc.h"
#include "rpcndr.h"
#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/
#ifndef __oletx2xa_h__
#define __oletx2xa_h__
#ifdef __cplusplus
extern "C"{
#endif
/* Forward Declarations */
#ifndef __IDtcToXaMapper_FWD_DEFINED__
#define __IDtcToXaMapper_FWD_DEFINED__
typedef interface IDtcToXaMapper IDtcToXaMapper;
#endif /* __IDtcToXaMapper_FWD_DEFINED__ */
#ifndef __IDtcToXaHelperFactory_FWD_DEFINED__
#define __IDtcToXaHelperFactory_FWD_DEFINED__
typedef interface IDtcToXaHelperFactory IDtcToXaHelperFactory;
#endif /* __IDtcToXaHelperFactory_FWD_DEFINED__ */
#ifndef __IDtcToXaHelper_FWD_DEFINED__
#define __IDtcToXaHelper_FWD_DEFINED__
typedef interface IDtcToXaHelper IDtcToXaHelper;
#endif /* __IDtcToXaHelper_FWD_DEFINED__ */
/* header files for imported files */
#include "unknwn.h"
#include "transact.h"
#include "xa.h"
void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
void __RPC_USER MIDL_user_free( void __RPC_FAR * );
/****************************************
* Generated header for interface: __MIDL_itf_oletx2xa_0000
* at Fri Nov 14 05:07:18 1997
* using MIDL 3.01.75
****************************************/
/* [local] */
//-------------------------------------------------------------------------
//
// Microsoft Distributed Transaction Coordinator
// Copyright (c) 1996-1997 Microsoft Corporation. All Rights Reserved.
//
// File: xamapper.h (generated from xamapper.idl)
//
// Contents: Interfaces and types to map OleTx transaction
// to XA transaction
//
//--------------------------------------------------------------------------
extern RPC_IF_HANDLE __MIDL_itf_oletx2xa_0000_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_oletx2xa_0000_v0_0_s_ifspec;
#ifndef __XaMapperTypes_INTERFACE_DEFINED__
#define __XaMapperTypes_INTERFACE_DEFINED__
/****************************************
* Generated header for interface: XaMapperTypes
* at Fri Nov 14 05:07:18 1997
* using MIDL 3.01.75
****************************************/
/* [unique][local] */
// Typedefs
typedef DWORD XA_SWITCH_FLAGS;
// Defines
#define XA_SWITCH_F_DTC 0x00000001
#define XA_FMTID_DTC 0x00445443
// Constants
const XID XID_NULL = {-1,0,0,'\0'};
extern RPC_IF_HANDLE XaMapperTypes_v0_0_c_ifspec;
extern RPC_IF_HANDLE XaMapperTypes_v0_0_s_ifspec;
#endif /* __XaMapperTypes_INTERFACE_DEFINED__ */
#ifndef __XaMapperAPIs_INTERFACE_DEFINED__
#define __XaMapperAPIs_INTERFACE_DEFINED__
/****************************************
* Generated header for interface: XaMapperAPIs
* at Fri Nov 14 05:07:18 1997
* using MIDL 3.01.75
****************************************/
/* [unique][local] */
HRESULT __cdecl GetXaSwitch(
/* [in] */ XA_SWITCH_FLAGS XaSwitchFlags,
/* [out] */ xa_switch_t __RPC_FAR *__RPC_FAR *ppXaSwitch);
extern RPC_IF_HANDLE XaMapperAPIs_v0_0_c_ifspec;
extern RPC_IF_HANDLE XaMapperAPIs_v0_0_s_ifspec;
#endif /* __XaMapperAPIs_INTERFACE_DEFINED__ */
#ifndef __IDtcToXaMapper_INTERFACE_DEFINED__
#define __IDtcToXaMapper_INTERFACE_DEFINED__
/****************************************
* Generated header for interface: IDtcToXaMapper
* at Fri Nov 14 05:07:18 1997
* using MIDL 3.01.75
****************************************/
/* [unique][uuid][object] */
EXTERN_C const IID IID_IDtcToXaMapper;
#if defined(__cplusplus) && !defined(CINTERFACE)
interface DECLSPEC_UUID("64FFABE0-7CE9-11d0-8CE6-00C04FDC877E")
IDtcToXaMapper : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE RequestNewResourceManager(
/* [in] */ char __RPC_FAR *pszDSN,
/* [in] */ char __RPC_FAR *pszClientDllName,
/* [out][in] */ DWORD __RPC_FAR *pdwRMCookie) = 0;
virtual HRESULT STDMETHODCALLTYPE TranslateTridToXid(
/* [in] */ DWORD __RPC_FAR *pdwITransaction,
/* [in] */ DWORD dwRMCookie,
/* [out][in] */ XID __RPC_FAR *pXid) = 0;
virtual HRESULT STDMETHODCALLTYPE EnlistResourceManager(
/* [in] */ DWORD dwRMCookie,
/* [in] */ DWORD __RPC_FAR *pdwITransaction) = 0;
virtual HRESULT STDMETHODCALLTYPE ReleaseResourceManager(
/* [in] */ DWORD dwRMCookie) = 0;
};
#else /* C style interface */
typedef struct IDtcToXaMapperVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )(
IDtcToXaMapper __RPC_FAR * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )(
IDtcToXaMapper __RPC_FAR * This);
ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )(
IDtcToXaMapper __RPC_FAR * This);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *RequestNewResourceManager )(
IDtcToXaMapper __RPC_FAR * This,
/* [in] */ char __RPC_FAR *pszDSN,
/* [in] */ char __RPC_FAR *pszClientDllName,
/* [out][in] */ DWORD __RPC_FAR *pdwRMCookie);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *TranslateTridToXid )(
IDtcToXaMapper __RPC_FAR * This,
/* [in] */ DWORD __RPC_FAR *pdwITransaction,
/* [in] */ DWORD dwRMCookie,
/* [out][in] */ XID __RPC_FAR *pXid);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *EnlistResourceManager )(
IDtcToXaMapper __RPC_FAR * This,
/* [in] */ DWORD dwRMCookie,
/* [in] */ DWORD __RPC_FAR *pdwITransaction);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *ReleaseResourceManager )(
IDtcToXaMapper __RPC_FAR * This,
/* [in] */ DWORD dwRMCookie);
END_INTERFACE
} IDtcToXaMapperVtbl;
interface IDtcToXaMapper
{
CONST_VTBL struct IDtcToXaMapperVtbl __RPC_FAR *lpVtbl;
};
#ifdef COBJMACROS
#define IDtcToXaMapper_QueryInterface(This,riid,ppvObject) \
(This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
#define IDtcToXaMapper_AddRef(This) \
(This)->lpVtbl -> AddRef(This)
#define IDtcToXaMapper_Release(This) \
(This)->lpVtbl -> Release(This)
#define IDtcToXaMapper_RequestNewResourceManager(This,pszDSN,pszClientDllName,pdwRMCookie) \
(This)->lpVtbl -> RequestNewResourceManager(This,pszDSN,pszClientDllName,pdwRMCookie)
#define IDtcToXaMapper_TranslateTridToXid(This,pdwITransaction,dwRMCookie,pXid) \
(This)->lpVtbl -> TranslateTridToXid(This,pdwITransaction,dwRMCookie,pXid)
#define IDtcToXaMapper_EnlistResourceManager(This,dwRMCookie,pdwITransaction) \
(This)->lpVtbl -> EnlistResourceManager(This,dwRMCookie,pdwITransaction)
#define IDtcToXaMapper_ReleaseResourceManager(This,dwRMCookie) \
(This)->lpVtbl -> ReleaseResourceManager(This,dwRMCookie)
#endif /* COBJMACROS */
#endif /* C style interface */
HRESULT STDMETHODCALLTYPE IDtcToXaMapper_RequestNewResourceManager_Proxy(
IDtcToXaMapper __RPC_FAR * This,
/* [in] */ char __RPC_FAR *pszDSN,
/* [in] */ char __RPC_FAR *pszClientDllName,
/* [out][in] */ DWORD __RPC_FAR *pdwRMCookie);
void __RPC_STUB IDtcToXaMapper_RequestNewResourceManager_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
HRESULT STDMETHODCALLTYPE IDtcToXaMapper_TranslateTridToXid_Proxy(
IDtcToXaMapper __RPC_FAR * This,
/* [in] */ DWORD __RPC_FAR *pdwITransaction,
/* [in] */ DWORD dwRMCookie,
/* [out][in] */ XID __RPC_FAR *pXid);
void __RPC_STUB IDtcToXaMapper_TranslateTridToXid_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
HRESULT STDMETHODCALLTYPE IDtcToXaMapper_EnlistResourceManager_Proxy(
IDtcToXaMapper __RPC_FAR * This,
/* [in] */ DWORD dwRMCookie,
/* [in] */ DWORD __RPC_FAR *pdwITransaction);
void __RPC_STUB IDtcToXaMapper_EnlistResourceManager_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
HRESULT STDMETHODCALLTYPE IDtcToXaMapper_ReleaseResourceManager_Proxy(
IDtcToXaMapper __RPC_FAR * This,
/* [in] */ DWORD dwRMCookie);
void __RPC_STUB IDtcToXaMapper_ReleaseResourceManager_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
#endif /* __IDtcToXaMapper_INTERFACE_DEFINED__ */
#ifndef __IDtcToXaHelperFactory_INTERFACE_DEFINED__
#define __IDtcToXaHelperFactory_INTERFACE_DEFINED__
/****************************************
* Generated header for interface: IDtcToXaHelperFactory
* at Fri Nov 14 05:07:18 1997
* using MIDL 3.01.75
****************************************/
/* [unique][uuid][object] */
EXTERN_C const IID IID_IDtcToXaHelperFactory;
#if defined(__cplusplus) && !defined(CINTERFACE)
interface DECLSPEC_UUID("A9861610-304A-11d1-9813-00A0C905416E")
IDtcToXaHelperFactory : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE Create(
/* [in] */ char __RPC_FAR *pszDSN,
/* [in] */ char __RPC_FAR *pszClientDllName,
/* [out] */ GUID __RPC_FAR *pguidRm,
/* [out] */ IDtcToXaHelper __RPC_FAR *__RPC_FAR *ppXaHelper) = 0;
};
#else /* C style interface */
typedef struct IDtcToXaHelperFactoryVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )(
IDtcToXaHelperFactory __RPC_FAR * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )(
IDtcToXaHelperFactory __RPC_FAR * This);
ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )(
IDtcToXaHelperFactory __RPC_FAR * This);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Create )(
IDtcToXaHelperFactory __RPC_FAR * This,
/* [in] */ char __RPC_FAR *pszDSN,
/* [in] */ char __RPC_FAR *pszClientDllName,
/* [out] */ GUID __RPC_FAR *pguidRm,
/* [out] */ IDtcToXaHelper __RPC_FAR *__RPC_FAR *ppXaHelper);
END_INTERFACE
} IDtcToXaHelperFactoryVtbl;
interface IDtcToXaHelperFactory
{
CONST_VTBL struct IDtcToXaHelperFactoryVtbl __RPC_FAR *lpVtbl;
};
#ifdef COBJMACROS
#define IDtcToXaHelperFactory_QueryInterface(This,riid,ppvObject) \
(This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
#define IDtcToXaHelperFactory_AddRef(This) \
(This)->lpVtbl -> AddRef(This)
#define IDtcToXaHelperFactory_Release(This) \
(This)->lpVtbl -> Release(This)
#define IDtcToXaHelperFactory_Create(This,pszDSN,pszClientDllName,pguidRm,ppXaHelper) \
(This)->lpVtbl -> Create(This,pszDSN,pszClientDllName,pguidRm,ppXaHelper)
#endif /* COBJMACROS */
#endif /* C style interface */
HRESULT STDMETHODCALLTYPE IDtcToXaHelperFactory_Create_Proxy(
IDtcToXaHelperFactory __RPC_FAR * This,
/* [in] */ char __RPC_FAR *pszDSN,
/* [in] */ char __RPC_FAR *pszClientDllName,
/* [out] */ GUID __RPC_FAR *pguidRm,
/* [out] */ IDtcToXaHelper __RPC_FAR *__RPC_FAR *ppXaHelper);
void __RPC_STUB IDtcToXaHelperFactory_Create_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
#endif /* __IDtcToXaHelperFactory_INTERFACE_DEFINED__ */
#ifndef __IDtcToXaHelper_INTERFACE_DEFINED__
#define __IDtcToXaHelper_INTERFACE_DEFINED__
/****************************************
* Generated header for interface: IDtcToXaHelper
* at Fri Nov 14 05:07:18 1997
* using MIDL 3.01.75
****************************************/
/* [unique][uuid][object] */
EXTERN_C const IID IID_IDtcToXaHelper;
#if defined(__cplusplus) && !defined(CINTERFACE)
interface DECLSPEC_UUID("A9861611-304A-11d1-9813-00A0C905416E")
IDtcToXaHelper : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE Close(
/* [in] */ BOOL i_fDoRecovery) = 0;
virtual HRESULT STDMETHODCALLTYPE TranslateTridToXid(
/* [in] */ ITransaction __RPC_FAR *pITransaction,
/* [in] */ GUID __RPC_FAR *pguidBqual,
/* [out] */ XID __RPC_FAR *pXid) = 0;
};
#else /* C style interface */
typedef struct IDtcToXaHelperVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )(
IDtcToXaHelper __RPC_FAR * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )(
IDtcToXaHelper __RPC_FAR * This);
ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )(
IDtcToXaHelper __RPC_FAR * This);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Close )(
IDtcToXaHelper __RPC_FAR * This,
/* [in] */ BOOL i_fDoRecovery);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *TranslateTridToXid )(
IDtcToXaHelper __RPC_FAR * This,
/* [in] */ ITransaction __RPC_FAR *pITransaction,
/* [in] */ GUID __RPC_FAR *pguidBqual,
/* [out] */ XID __RPC_FAR *pXid);
END_INTERFACE
} IDtcToXaHelperVtbl;
interface IDtcToXaHelper
{
CONST_VTBL struct IDtcToXaHelperVtbl __RPC_FAR *lpVtbl;
};
#ifdef COBJMACROS
#define IDtcToXaHelper_QueryInterface(This,riid,ppvObject) \
(This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
#define IDtcToXaHelper_AddRef(This) \
(This)->lpVtbl -> AddRef(This)
#define IDtcToXaHelper_Release(This) \
(This)->lpVtbl -> Release(This)
#define IDtcToXaHelper_Close(This,i_fDoRecovery) \
(This)->lpVtbl -> Close(This,i_fDoRecovery)
#define IDtcToXaHelper_TranslateTridToXid(This,pITransaction,pguidBqual,pXid) \
(This)->lpVtbl -> TranslateTridToXid(This,pITransaction,pguidBqual,pXid)
#endif /* COBJMACROS */
#endif /* C style interface */
HRESULT STDMETHODCALLTYPE IDtcToXaHelper_Close_Proxy(
IDtcToXaHelper __RPC_FAR * This,
/* [in] */ BOOL i_fDoRecovery);
void __RPC_STUB IDtcToXaHelper_Close_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
HRESULT STDMETHODCALLTYPE IDtcToXaHelper_TranslateTridToXid_Proxy(
IDtcToXaHelper __RPC_FAR * This,
/* [in] */ ITransaction __RPC_FAR *pITransaction,
/* [in] */ GUID __RPC_FAR *pguidBqual,
/* [out] */ XID __RPC_FAR *pXid);
void __RPC_STUB IDtcToXaHelper_TranslateTridToXid_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
#endif /* __IDtcToXaHelper_INTERFACE_DEFINED__ */
/****************************************
* Generated header for interface: __MIDL_itf_oletx2xa_0018
* at Fri Nov 14 05:07:18 1997
* using MIDL 3.01.75
****************************************/
/* [local] */
#if _MSC_VER < 1100 || !defined(__cplusplus)
DEFINE_GUID(IID_IDtcToXaMapper, 0x64FFABE0, 0x7CE9, 0x11d0, 0x8C, 0xE6, 0x00, 0xC0, 0x4F, 0xDC, 0x87, 0x7E);
DEFINE_GUID(IID_IDtcToXaHelperFactory, 0xadefc46a, 0xcb1d, 0x11d0, 0xb1, 0x35, 0x00, 0xc0, 0x4f, 0xc2, 0xf3, 0xef);
DEFINE_GUID(IID_IDtcToXaHelper, 0xadefc46b, 0xcb1d, 0x11d0, 0xb1, 0x35, 0x00, 0xc0, 0x4f, 0xc2, 0xf3, 0xef);
#else
#define IID_IDtcToXaMapper __uuidof(IDtcToXaMapper)
#define IID_IDtcToXaHelperFactory __uuidof(IDtcToXaHelperFactory)
#define IID_IDtcToXaHelper __uuidof(IDtcToXaHelper)
#endif
extern RPC_IF_HANDLE __MIDL_itf_oletx2xa_0018_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_oletx2xa_0018_v0_0_s_ifspec;
/* Additional Prototypes for ALL interfaces */
/* end of Additional Prototypes */
#ifdef __cplusplus
}
#endif
#endif