xolehlp: add some stubs

Daniel Jelinski djelinski1 at gmail.com
Tue Nov 13 13:17:27 CST 2012


DtcGetTransactionManager is needed by MS SQL Server 2000 (bug 32075)
and the Ex version is needed by SQL Server 2005 (bug 32048).
Unfortunately these stubs do not change anything for the affected
applications.
-------------- next part --------------
From 46193bf3ee95f49941792005b636dd2da8c5d6fb Mon Sep 17 00:00:00 2001
From: Daniel Jelinski <djelinski1 at gmail.com>
Date: Sat, 3 Nov 2012 23:43:36 +0100
Subject: xolehlp: add some stubs

---
 dlls/xolehlp/xolehlp.c    |   22 ++++++++++++++++++++++
 dlls/xolehlp/xolehlp.spec |    6 +++---
 2 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/dlls/xolehlp/xolehlp.c b/dlls/xolehlp/xolehlp.c
index 3b970ef..cd46a33 100644
--- a/dlls/xolehlp/xolehlp.c
+++ b/dlls/xolehlp/xolehlp.c
@@ -39,3 +39,25 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
     }
     return TRUE;
 }
+
+HRESULT WINAPI DtcGetTransactionManager(CHAR *pszHost, CHAR *pszTmName, REFIID riid,
+        DWORD dwReserved1, WORD wcbReserved2, void *pvReserved2, void **ppv)
+{
+    FIXME("(%s, %s, %s, %d, %d, %p, %p): stub\n", pszHost, pszTmName, debugstr_guid(riid),
+            dwReserved1, wcbReserved2, pvReserved2, ppv);
+    return E_NOTIMPL;
+}
+HRESULT WINAPI DtcGetTransactionManagerExA(CHAR *pszHost, CHAR *pszTmName, REFIID riid,
+        DWORD grfOptions, void *pvConfigParams, void **ppvObject)
+{
+    FIXME("(%s, %s, %s, %d, %p, %p): stub\n", pszHost, pszTmName, debugstr_guid(riid),
+            grfOptions, pvConfigParams, ppvObject);
+    return E_NOTIMPL;
+}
+HRESULT WINAPI DtcGetTransactionManagerExW(WCHAR *pszHost, WCHAR *pszTmName, REFIID riid,
+        DWORD grfOptions, void *pvConfigParams, void **ppvObject)
+{
+    FIXME("(%s, %s, %s, %d, %p, %p): stub\n", debugstr_w(pszHost), debugstr_w(pszTmName),
+            debugstr_guid(riid), grfOptions, pvConfigParams, ppvObject);
+    return E_NOTIMPL;
+}
diff --git a/dlls/xolehlp/xolehlp.spec b/dlls/xolehlp/xolehlp.spec
index f774542..0f14f29 100644
--- a/dlls/xolehlp/xolehlp.spec
+++ b/dlls/xolehlp/xolehlp.spec
@@ -1,6 +1,6 @@
 @ stub GetDtcLocaleResourceHandle
-@ stub DtcGetTransactionManager
+@ stdcall DtcGetTransactionManager (str str ptr long long ptr ptr)
 @ stub DtcGetTransactionManagerEx
 @ stub DtcGetTransactionManagerC
-@ stub DtcGetTransactionManagerExA
-@ stub DtcGetTransactionManagerExW
+@ stdcall DtcGetTransactionManagerExA (str str ptr long ptr ptr)
+@ stdcall DtcGetTransactionManagerExW (wstr wstr ptr long ptr ptr)
-- 
1.7.5.4


More information about the wine-patches mailing list