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
27 #include "wine/debug.h"
29 WINE_DEFAULT_DEBUG_CHANNEL( mscoree );
31 HRESULT WINAPI CorBindToRuntimeHost(LPCWSTR pwszVersion, LPCWSTR pwszBuildFlavor,
32 LPCWSTR pwszHostConfigFile, VOID *pReserved,
33 DWORD startupFlags, REFCLSID rclsid,
34 REFIID riid, LPVOID *ppv)
36 FIXME("(%s, %s, %s, %p, %d, %p, %p, %p): stub!\n", debugstr_w(pwszVersion),
37 debugstr_w(pwszBuildFlavor), debugstr_w(pwszHostConfigFile), pReserved,
38 startupFlags, rclsid, riid, ppv);
43 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
45 TRACE("(%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
49 case DLL_WINE_PREATTACH:
50 return FALSE; /* prefer native version */
51 case DLL_PROCESS_ATTACH:
52 DisableThreadLibraryCalls(hinstDLL);
54 case DLL_PROCESS_DETACH:
60 BOOL WINAPI _CorDllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
62 FIXME("(%p, %d, %p): stub\n", hinstDLL, fdwReason, lpvReserved);
66 case DLL_PROCESS_ATTACH:
67 DisableThreadLibraryCalls(hinstDLL);
69 case DLL_PROCESS_DETACH:
75 int WINAPI _CorExeMain(void)
77 FIXME("Directly running .NET applications not supported.\n");
81 int WINAPI _CorExeMain2(PBYTE ptrMemory, DWORD cntMemory, LPCWSTR imageName, LPCWSTR loaderName, LPCWSTR cmdLine)
83 TRACE("(%p, %u, %s, %s, %s)\n", ptrMemory, cntMemory, debugstr_w(imageName), debugstr_w(loaderName), debugstr_w(cmdLine));
84 FIXME("Directly running .NET applications not supported.\n");
88 void WINAPI _CorImageUnloading(LPCVOID* imageBase)
90 TRACE("(%p): stub\n", imageBase);
93 DWORD _CorValidateImage(LPCVOID* imageBase, LPCWSTR imageName)
95 TRACE("(%p, %s): stub\n", imageBase, debugstr_w(imageName));
99 HRESULT WINAPI GetCORVersion(LPWSTR pbuffer, DWORD cchBuffer, DWORD *dwLength)
101 static const WCHAR version[] = {'1','.','1','.','4','3','2','2',0};
103 FIXME("(%p, %d, %p): semi-stub!\n", pbuffer, cchBuffer, dwLength);
108 *dwLength = lstrlenW(version);
110 if (cchBuffer < *dwLength)
111 return ERROR_INSUFFICIENT_BUFFER;
114 lstrcpyW(pbuffer, version);