From 1318cc47d41bffcde4355fa17bffa3b3222c6b37 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Tue, 21 Sep 2010 15:34:18 -0500 Subject: [PATCH 02/22] mscoree: Stub CLRCreateInstance. --- dlls/mscoree/mscoree.spec | 1 + dlls/mscoree/mscoree_main.c | 9 +++++++++ include/metahost.idl | 2 ++ 3 files changed, 12 insertions(+), 0 deletions(-) diff --git a/dlls/mscoree/mscoree.spec b/dlls/mscoree/mscoree.spec index 2654813..1d4d7f7 100644 --- a/dlls/mscoree/mscoree.spec +++ b/dlls/mscoree/mscoree.spec @@ -7,6 +7,7 @@ @ stub CallFunctionShim @ stub CloseCtrs +@ stdcall CLRCreateInstance(ptr ptr ptr) @ stdcall ClrCreateManagedInstance(wstr ptr ptr) @ stub CoEEShutDownCOM @ stdcall CoInitializeCor(long) diff --git a/dlls/mscoree/mscoree_main.c b/dlls/mscoree/mscoree_main.c index 980bed1..7b33619 100644 --- a/dlls/mscoree/mscoree_main.c +++ b/dlls/mscoree/mscoree_main.c @@ -29,12 +29,14 @@ #include "winnls.h" #include "winreg.h" #include "ole2.h" +#include "ocidl.h" #include "shellapi.h" #include "initguid.h" #include "cor.h" #include "corerror.h" #include "mscoree.h" +#include "metahost.h" #include "mscoree_private.h" #include "wine/debug.h" @@ -638,6 +640,13 @@ BOOL WINAPI StrongNameSignatureVerificationEx(LPCWSTR filename, BOOL forceVerifi return FALSE; } +HRESULT WINAPI CLRCreateInstance(REFCLSID clsid, REFIID riid, LPVOID *ppInterface) +{ + FIXME("(%s,%s,%p): stub\n", debugstr_guid(clsid), debugstr_guid(riid), ppInterface); + + return E_NOTIMPL; +} + HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv) { FIXME("(%s, %s, %p): stub\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv); diff --git a/include/metahost.idl b/include/metahost.idl index d0d3355..369addb 100644 --- a/include/metahost.idl +++ b/include/metahost.idl @@ -65,3 +65,5 @@ interface ICLRMetaHost : IUnknown HRESULT ExitProcess( [in] INT32 iExitCode); }; + +cpp_quote("HRESULT WINAPI CLRCreateInstance(REFCLSID clsid, REFIID riid, LPVOID *ppInterface);") -- 1.7.0.4