2 * Implementation of mscoree.dll
3 * Microsoft Component Object Runtime Execution Engine
5 * Copyright 2006 Paul Chitescu
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
29 #include "wine/debug.h"
31 WINE_DEFAULT_DEBUG_CHANNEL( mscoree );
33 HRESULT WINAPI CorBindToRuntimeHost(LPCWSTR pwszVersion, LPCWSTR pwszBuildFlavor,
34 LPCWSTR pwszHostConfigFile, VOID *pReserved,
35 DWORD startupFlags, REFCLSID rclsid,
36 REFIID riid, LPVOID *ppv)
38 FIXME("(%s, %s, %s, %p, %d, %p, %p, %p): stub!\n", debugstr_w(pwszVersion),
39 debugstr_w(pwszBuildFlavor), debugstr_w(pwszHostConfigFile), pReserved,
40 startupFlags, rclsid, riid, ppv);
45 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
47 TRACE("(%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
51 case DLL_WINE_PREATTACH:
52 return FALSE; /* prefer native version */
53 case DLL_PROCESS_ATTACH:
54 DisableThreadLibraryCalls(hinstDLL);
56 case DLL_PROCESS_DETACH:
62 BOOL WINAPI _CorDllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
64 FIXME("(%p, %d, %p): stub\n", hinstDLL, fdwReason, lpvReserved);
68 case DLL_PROCESS_ATTACH:
69 DisableThreadLibraryCalls(hinstDLL);
71 case DLL_PROCESS_DETACH:
77 int WINAPI _CorExeMain(void)
79 FIXME("Directly running .NET applications not supported.\n");
83 int WINAPI _CorExeMain2(PBYTE ptrMemory, DWORD cntMemory, LPCWSTR imageName, LPCWSTR loaderName, LPCWSTR cmdLine)
85 TRACE("(%p, %u, %s, %s, %s)\n", ptrMemory, cntMemory, debugstr_w(imageName), debugstr_w(loaderName), debugstr_w(cmdLine));
86 FIXME("Directly running .NET applications not supported.\n");
90 void WINAPI _CorImageUnloading(LPCVOID* imageBase)
92 TRACE("(%p): stub\n", imageBase);
95 DWORD _CorValidateImage(LPCVOID* imageBase, LPCWSTR imageName)
97 TRACE("(%p, %s): stub\n", imageBase, debugstr_w(imageName));
101 HRESULT WINAPI GetCORVersion(LPWSTR pbuffer, DWORD cchBuffer, DWORD *dwLength)
103 static const WCHAR version[] = {'v','1','.','1','.','4','3','2','2',0};
105 FIXME("(%p, %d, %p): semi-stub!\n", pbuffer, cchBuffer, dwLength);
110 *dwLength = lstrlenW(version);
112 if (cchBuffer < *dwLength)
113 return ERROR_INSUFFICIENT_BUFFER;
116 lstrcpyW(pbuffer, version);
121 HRESULT WINAPI LoadLibraryShim( LPCWSTR szDllName, LPCWSTR szVersion, LPVOID pvReserved, HMODULE * phModDll)
123 *phModDll = LoadLibraryW(szDllName);
124 FIXME("(%p %s, %p, %p, %p): semi-stub\n", szDllName, debugstr_w(szDllName), szVersion, pvReserved, phModDll);
128 HRESULT WINAPI CoInitializeCor(DWORD fFlags)
130 FIXME("(0x%08x): stub\n", fFlags);
134 HRESULT WINAPI GetAssemblyMDImport(LPCWSTR szFileName, REFIID riid, IUnknown **ppIUnk)
136 FIXME("(%p %s, %p, %p): stub\n", szFileName, debugstr_w(szFileName), riid, *ppIUnk);
137 return ERROR_CALL_NOT_IMPLEMENTED;