James Hawkins : mscoree:
Add stub implementations of CorBindToRuntimeHost and GetCORVersion.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Oct 16 05:28:41 CDT 2006
Module: wine
Branch: master
Commit: eb676fff06ef702c6033f65edb7d39ebe31040ea
URL: http://source.winehq.org/git/wine.git/?a=commit;h=eb676fff06ef702c6033f65edb7d39ebe31040ea
Author: James Hawkins <truiken at gmail.com>
Date: Fri Oct 13 14:07:17 2006 -0700
mscoree: Add stub implementations of CorBindToRuntimeHost and GetCORVersion.
---
dlls/mscoree/mscoree.spec | 4 ++--
dlls/mscoree/mscoree_main.c | 32 ++++++++++++++++++++++++++++++++
2 files changed, 34 insertions(+), 2 deletions(-)
diff --git a/dlls/mscoree/mscoree.spec b/dlls/mscoree/mscoree.spec
index 966cbfc..1d39504 100644
--- a/dlls/mscoree/mscoree.spec
+++ b/dlls/mscoree/mscoree.spec
@@ -20,7 +20,7 @@
@ stub CorBindToRuntimeByPath
@ stub CorBindToRuntimeByPathEx
@ stub CorBindToRuntimeEx
-@ stub CorBindToRuntimeHost
+@ stdcall CorBindToRuntimeHost(wstr wstr wstr ptr long ptr ptr ptr)
@ stub CorDllMainWorker
@ stub CorExitProcess
@ stub CorGetSvc
@@ -40,7 +40,7 @@
@ stub GetCORRequiredVersion
@ stub GetCORRootDirectory
@ stub GetCORSystemDirectory
-@ stub GetCORVersion
+@ stdcall GetCORVersion(wstr long ptr)
@ stub GetCompileInfo
@ stub GetFileVersion
@ stub GetHashFromAssemblyFile
diff --git a/dlls/mscoree/mscoree_main.c b/dlls/mscoree/mscoree_main.c
index 2dfc046..3743ff5 100644
--- a/dlls/mscoree/mscoree_main.c
+++ b/dlls/mscoree/mscoree_main.c
@@ -28,6 +28,18 @@ #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL( mscoree );
+HRESULT WINAPI CorBindToRuntimeHost(LPCWSTR pwszVersion, LPCWSTR pwszBuildFlavor,
+ LPCWSTR pwszHostConfigFile, VOID *pReserved,
+ DWORD startupFlags, REFCLSID rclsid,
+ REFIID riid, LPVOID *ppv)
+{
+ FIXME("(%s, %s, %s, %p, %d, %p, %p, %p): stub!\n", debugstr_w(pwszVersion),
+ debugstr_w(pwszBuildFlavor), debugstr_w(pwszHostConfigFile), pReserved,
+ startupFlags, rclsid, riid, ppv);
+
+ return E_FAIL;
+}
+
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
TRACE("(%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
@@ -83,3 +95,23 @@ DWORD _CorValidateImage(LPCVOID* imageBa
TRACE("(%p, %s): stub\n", imageBase, debugstr_w(imageName));
return E_FAIL;
}
+
+HRESULT WINAPI GetCORVersion(LPWSTR pbuffer, DWORD cchBuffer, DWORD *dwLength)
+{
+ static const WCHAR version[] = {'1','.','1','.','4','3','2','2',0};
+
+ FIXME("(%p, %d, %p): semi-stub!\n", pbuffer, cchBuffer, dwLength);
+
+ if (!dwLength)
+ return E_POINTER;
+
+ *dwLength = lstrlenW(version);
+
+ if (cchBuffer < *dwLength)
+ return ERROR_INSUFFICIENT_BUFFER;
+
+ if (pbuffer)
+ lstrcpyW(pbuffer, version);
+
+ return S_OK;
+}
More information about the wine-cvs
mailing list