From 8c34da22978590981fcd68d88d311caef1e39779 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Mon, 11 Dec 2006 14:25:39 +0100 Subject: [PATCH] mscoree: Add a stub implementation for CorExitProcess and GetRequestedRuntimeInfo. --- dlls/mscoree/mscoree.spec | 4 ++-- dlls/mscoree/mscoree_main.c | 19 ++++++++++++++++++- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/dlls/mscoree/mscoree.spec b/dlls/mscoree/mscoree.spec index 32dd72bdca..80dac086d6 100644 --- a/dlls/mscoree/mscoree.spec +++ b/dlls/mscoree/mscoree.spec @@ -22,7 +22,7 @@ @ stub CorBindToRuntimeEx @ stdcall CorBindToRuntimeHost(wstr wstr wstr ptr long ptr ptr ptr) @ stub CorDllMainWorker -@ stub CorExitProcess +@ stdcall CorExitProcess(long) @ stub CorGetSvc @ stub CorIsLatestSvc @ stub CorMarkThreadInThreadPool @@ -57,7 +57,7 @@ @ stub GetPrivateContextsPerfCounters @ stub GetProcessExecutableHeap @ stub GetRealProcAddress -@ stub GetRequestedRuntimeInfo +@ stdcall GetRequestedRuntimeInfo(wstr wstr wstr long long ptr long ptr ptr long ptr) @ stub GetRequestedRuntimeVersion @ stub GetRequestedRuntimeVersionForCLSID @ stub GetStartupFlags diff --git a/dlls/mscoree/mscoree_main.c b/dlls/mscoree/mscoree_main.c index 69416126de..414e725d63 100644 --- a/dlls/mscoree/mscoree_main.c +++ b/dlls/mscoree/mscoree_main.c @@ -175,6 +175,12 @@ int WINAPI _CorExeMain2(PBYTE ptrMemory, DWORD cntMemory, LPCWSTR imageName, LPC return -1; } +void WINAPI CorExitProcess(int exitCode) +{ + FIXME("(%x) stub\n", exitCode); + ExitProcess(exitCode); +} + void WINAPI _CorImageUnloading(LPCVOID* imageBase) { TRACE("(%p): stub\n", imageBase); @@ -206,10 +212,21 @@ HRESULT WINAPI GetCORVersion(LPWSTR pbuffer, DWORD cchBuffer, DWORD *dwLength) return S_OK; } +HRESULT WINAPI GetRequestedRuntimeInfo(LPCWSTR pExe, LPCWSTR pwszVersion, LPCWSTR pConfigurationFile, + DWORD startupFlags, DWORD runtimeInfoFlags, LPWSTR pDirectory, DWORD dwDirectory, DWORD *dwDirectoryLength, + LPWSTR pVersion, DWORD cchBuffer, DWORD *dwlength) +{ + FIXME("(%s, %s, %s, 0x%08x, 0x%08x, %p, 0x%08x, %p, %p, 0x%08x, %p) stub\n", debugstr_w(pExe), + debugstr_w(pwszVersion), debugstr_w(pConfigurationFile), startupFlags, runtimeInfoFlags, pDirectory, + dwDirectory, dwDirectoryLength, pVersion, cchBuffer, dwlength); + return GetCORVersion(pVersion, cchBuffer, dwlength); +} + HRESULT WINAPI LoadLibraryShim( LPCWSTR szDllName, LPCWSTR szVersion, LPVOID pvReserved, HMODULE * phModDll) { - *phModDll = LoadLibraryW(szDllName); FIXME("(%p %s, %p, %p, %p): semi-stub\n", szDllName, debugstr_w(szDllName), szVersion, pvReserved, phModDll); + + if (phModDll) *phModDll = LoadLibraryW(szDllName); return S_OK; } -- 2.32.0.93.g670b81a890