26#include "wine/unicode.h"
54 *
ppv = &
This->IResourceManager_iface;
72 TRACE(
"(%p) refcount=%u\n", iface,
ref);
82 TRACE(
"(%p) refcount=%u\n", iface,
ref);
95 FIXME(
"(%p, %p, %p, %p, %p, %p): stub\n", iface, pTransaction,pRes,pUOW,
102 FIXME(
"(%p, %p, %u, %u, %p): stub\n", iface, pPrepInfo, cbPrepInfo, lTimeout, pXactStat);
107 FIXME(
"(%p): stub\n", iface);
140 ret = IResourceManager_QueryInterface(&
This->IResourceManager_iface,
riid,
ppv);
141 IResourceManager_Release(&
This->IResourceManager_iface);
172 *
ppv = &
This->ITransactionOptions_iface;
190 TRACE(
"(%p) refcount=%u\n", iface,
ref);
200 TRACE(
"(%p) refcount=%u\n", iface,
ref);
216 This->opts = *pOptions;
224 TRACE(
"(%p, %p)\n", iface, pOptions);
226 *pOptions =
This->opts;
250 *
ppv = &
This->ITransactionOptions_iface;
281 *
ppv = &
This->ITransaction_iface;
299 TRACE(
"(%p) refcount=%u\n", iface,
ref);
309 TRACE(
"(%p) refcount=%u\n", iface,
ref);
321 FIXME(
"(%p, %d, %08x, %08x): stub\n", iface, fRetaining, grfTC, grfRM);
327 FIXME(
"(%p, %p, %d, %d): stub\n", iface, pboidReason, fRetaining, fAsync);
334 TRACE(
"(%p, %p)\n", iface, pinfo);
362 This->info.isoLevel = isoLevel;
363 This->info.isoFlags = isoFlags;
365 *
ppv = &
This->ITransaction_iface;
398 *
ppv = &
This->ITransactionDispenser_iface;
400 else if (
IsEqualIID(&IID_IResourceManagerFactory, iid) ||
401 IsEqualIID(&IID_IResourceManagerFactory2, iid))
403 *
ppv = &
This->IResourceManagerFactory2_iface;
405 else if (
IsEqualIID(&IID_ITransactionImportWhereabouts, iid))
407 *
ppv = &
This->ITransactionImportWhereabouts_iface;
409 else if (
IsEqualIID(&IID_ITransactionImport, iid))
411 *
ppv = &
This->ITransactionImport_iface;
429 TRACE(
"(%p) refcount=%u\n", iface,
ref);
439 TRACE(
"(%p) refcount=%u\n", iface,
ref);
464 FIXME(
"(%p, %p, %08x, %08x, %p, %p): semi-stub\n", iface, punkOuter,
465 isoLevel, isoFlags, pOptions, ppTransaction);
506 debugstr_a(pszRMName), pIResMgrSink, ppResMgr);
549 ULONG *pcbWhereabouts)
551 FIXME(
"(%p, %p): stub returning fake value\n", iface, pcbWhereabouts);
560 FIXME(
"(%p, %u, %p, %p): stub returning fake value\n", iface, cbWhereabouts, rgbWhereabouts, pcbUsed);
599 ULONG cbTransactionCookie,
byte *rgbTransactionCookie,
IID *piid,
void **ppvTransaction)
601 FIXME(
"(%p, %u, %p, %s, %p): stub\n", iface, cbTransactionCookie, rgbTransactionCookie,
debugstr_guid(piid), ppvTransaction);
603 if (!rgbTransactionCookie || !piid || !ppvTransaction)
return E_INVALIDARG;
627 ret = ITransactionDispenser_QueryInterface(&
This->ITransactionDispenser_iface,
riid,
ppv);
628 ITransactionDispenser_Release(&
This->ITransactionDispenser_iface);
640 case DLL_WINE_PREATTACH:
651 static const CHAR dot[] =
".";
671 DWORD dwReserved1,
WORD wcbReserved2,
void *pvReserved2,
void **
ppv)
678 FIXME(
"remote computer not supported\n");
692 FIXME(
"remote computer not supported\n");
706 FIXME(
"remote computer not supported\n");
int strcmp(const char *String1, const char *String2)
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
BOOL WINAPI GetComputerNameW(LPWSTR lpBuffer, LPDWORD lpnSize)
LPAVICOMPRESSOPTIONS * ppOptions
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
#define DLL_PROCESS_ATTACH
#define HeapFree(x, y, z)
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
int WINAPI lstrcmpiA(LPCSTR str1, LPCSTR str2)
static const WCHAR dotW[]
#define IsEqualIID(riid1, riid2)
BOOL WINAPI SHIM_OBJ_NAME() GetComputerNameA(LPSTR lpBuffer, LPDWORD lpnSize)
IResourceManager IResourceManager_iface
ITransactionImport ITransactionImport_iface
IResourceManagerFactory2 IResourceManagerFactory2_iface
ITransactionDispenser ITransactionDispenser_iface
ITransactionImportWhereabouts ITransactionImportWhereabouts_iface
ITransactionOptions ITransactionOptions_iface
ITransaction ITransaction_iface
#define CONTAINING_RECORD(address, type, field)
static rfbScreenInfoPtr server
#define MAX_COMPUTERNAME_LENGTH
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
#define CLASS_E_NOAGGREGATION
static const IResourceManagerFactory2Vtbl ResourceManagerFactory2_Vtbl
static const ITransactionImportWhereaboutsVtbl TransactionImportWhereabouts_Vtbl
static ResourceManager * impl_from_IResourceManager(IResourceManager *iface)
static ULONG WINAPI TransactionDispenser_AddRef(ITransactionDispenser *iface)
static HRESULT WINAPI TransactionImportWhereabouts_QueryInterface(ITransactionImportWhereabouts *iface, REFIID iid, void **ppv)
static HRESULT WINAPI TransactionOptions_GetOptions(ITransactionOptions *iface, XACTOPT *pOptions)
static HRESULT WINAPI ResourceManager_GetDistributedTransactionManager(IResourceManager *iface, REFIID iid, void **ppvObject)
static TransactionManager * impl_from_ITransactionImport(ITransactionImport *iface)
static ULONG WINAPI ResourceManager_Release(IResourceManager *iface)
static BOOL is_local_machineA(const CHAR *server)
static HRESULT WINAPI Transaction_QueryInterface(ITransaction *iface, REFIID iid, void **ppv)
static HRESULT WINAPI ResourceManagerFactory2_Create(IResourceManagerFactory2 *iface, GUID *pguidRM, CHAR *pszRMName, IResourceManagerSink *pIResMgrSink, IResourceManager **ppResMgr)
static HRESULT WINAPI TransactionImport_QueryInterface(ITransactionImport *iface, REFIID iid, void **ppv)
static HRESULT WINAPI TransactionOptions_SetOptions(ITransactionOptions *iface, XACTOPT *pOptions)
BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
static HRESULT WINAPI ResourceManager_ReenlistmentComplete(IResourceManager *iface)
static HRESULT WINAPI TransactionImportWhereabouts_GetWhereaboutsSize(ITransactionImportWhereabouts *iface, ULONG *pcbWhereabouts)
HRESULT CDECL DtcGetTransactionManager(char *host, char *tm_name, REFIID riid, DWORD dwReserved1, WORD wcbReserved2, void *pvReserved2, void **ppv)
static ULONG WINAPI ResourceManagerFactory2_Release(IResourceManagerFactory2 *iface)
static ULONG WINAPI TransactionImport_AddRef(ITransactionImport *iface)
static ULONG WINAPI Transaction_AddRef(ITransaction *iface)
static const ITransactionVtbl Transaction_Vtbl
static HRESULT WINAPI ResourceManagerFactory2_QueryInterface(IResourceManagerFactory2 *iface, REFIID iid, void **ppv)
static TransactionManager * impl_from_ITransactionDispenser(ITransactionDispenser *iface)
static HRESULT WINAPI TransactionImportWhereabouts_GetWhereabouts(ITransactionImportWhereabouts *iface, ULONG cbWhereabouts, BYTE *rgbWhereabouts, ULONG *pcbUsed)
static HRESULT TransactionManager_Create(REFIID riid, void **ppv)
static ULONG WINAPI Transaction_Release(ITransaction *iface)
static const ITransactionOptionsVtbl TransactionOptions_Vtbl
static HRESULT TransactionOptions_Create(ITransactionOptions **ppv)
static const IResourceManagerVtbl ResourceManager_Vtbl
static const ITransactionImportVtbl TransactionImport_Vtbl
static BOOL is_local_machineW(const WCHAR *server)
HRESULT CDECL DtcGetTransactionManagerExW(WCHAR *host, WCHAR *tm_name, REFIID riid, DWORD options, void *config, void **ppv)
static ULONG WINAPI TransactionDispenser_Release(ITransactionDispenser *iface)
static HRESULT WINAPI ResourceManager_QueryInterface(IResourceManager *iface, REFIID iid, void **ppv)
static const ITransactionDispenserVtbl TransactionDispenser_Vtbl
static Transaction * impl_from_ITransaction(ITransaction *iface)
static ULONG WINAPI ResourceManager_AddRef(IResourceManager *iface)
static ULONG WINAPI TransactionOptions_AddRef(ITransactionOptions *iface)
static ULONG WINAPI TransactionImport_Release(ITransactionImport *iface)
static HRESULT WINAPI ResourceManager_Reenlist(IResourceManager *iface, byte *pPrepInfo, ULONG cbPrepInfo, DWORD lTimeout, XACTSTAT *pXactStat)
static HRESULT WINAPI ResourceManagerFactory2_CreateEx(IResourceManagerFactory2 *iface, GUID *pguidRM, CHAR *pszRMName, IResourceManagerSink *pIResMgrSink, REFIID riidRequested, void **ppResMgr)
static TransactionManager * impl_from_ITransactionImportWhereabouts(ITransactionImportWhereabouts *iface)
static HRESULT WINAPI TransactionDispenser_BeginTransaction(ITransactionDispenser *iface, IUnknown *punkOuter, ISOLEVEL isoLevel, ULONG isoFlags, ITransactionOptions *pOptions, ITransaction **ppTransaction)
static HRESULT WINAPI TransactionDispenser_GetOptionsObject(ITransactionDispenser *iface, ITransactionOptions **ppOptions)
static HRESULT WINAPI TransactionOptions_QueryInterface(ITransactionOptions *iface, REFIID iid, void **ppv)
static HRESULT WINAPI Transaction_Commit(ITransaction *iface, BOOL fRetaining, DWORD grfTC, DWORD grfRM)
static TransactionManager * impl_from_IResourceManagerFactory2(IResourceManagerFactory2 *iface)
static ULONG WINAPI TransactionOptions_Release(ITransactionOptions *iface)
static HRESULT WINAPI ResourceManager_Enlist(IResourceManager *iface, ITransaction *pTransaction, ITransactionResourceAsync *pRes, XACTUOW *pUOW, LONG *pisoLevel, ITransactionEnlistmentAsync **ppEnlist)
static HRESULT WINAPI TransactionDispenser_QueryInterface(ITransactionDispenser *iface, REFIID iid, void **ppv)
static ULONG WINAPI ResourceManagerFactory2_AddRef(IResourceManagerFactory2 *iface)
static HRESULT WINAPI Transaction_GetTransactionInfo(ITransaction *iface, XACTTRANSINFO *pinfo)
static TransactionOptions * impl_from_ITransactionOptions(ITransactionOptions *iface)
HRESULT CDECL DtcGetTransactionManagerExA(CHAR *host, CHAR *tm_name, REFIID riid, DWORD options, void *config, void **ppv)
static ULONG WINAPI TransactionImportWhereabouts_Release(ITransactionImportWhereabouts *iface)
static HRESULT WINAPI TransactionImport_Import(ITransactionImport *iface, ULONG cbTransactionCookie, byte *rgbTransactionCookie, IID *piid, void **ppvTransaction)
static ULONG WINAPI TransactionImportWhereabouts_AddRef(ITransactionImportWhereabouts *iface)
static HRESULT ResourceManager_Create(REFIID riid, void **ppv)
static HRESULT WINAPI Transaction_Abort(ITransaction *iface, BOID *pboidReason, BOOL fRetaining, BOOL fAsync)
static HRESULT Transaction_Create(ISOLEVEL isoLevel, ULONG isoFlags, ITransactionOptions *pOptions, ITransaction **ppv)