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 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
33 TRACE("(%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
37 case DLL_WINE_PREATTACH:
38 return FALSE; /* prefer native version */
39 case DLL_PROCESS_ATTACH:
40 DisableThreadLibraryCalls(hinstDLL);
42 case DLL_PROCESS_DETACH:
48 BOOL WINAPI _CorDllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
50 FIXME("(%p, %d, %p): stub\n", hinstDLL, fdwReason, lpvReserved);
54 case DLL_PROCESS_ATTACH:
55 DisableThreadLibraryCalls(hinstDLL);
57 case DLL_PROCESS_DETACH:
63 int WINAPI _CorExeMain(void)
65 FIXME("Directly running .NET applications not supported.\n");
69 int WINAPI _CorExeMain2(PBYTE ptrMemory, DWORD cntMemory, LPCWSTR imageName, LPCWSTR loaderName, LPCWSTR cmdLine)
71 TRACE("(%p, %u, %s, %s, %s)\n", ptrMemory, cntMemory, debugstr_w(imageName), debugstr_w(loaderName), debugstr_w(cmdLine));
72 FIXME("Directly running .NET applications not supported.\n");
76 void WINAPI _CorImageUnloading(LPCVOID* imageBase)
78 TRACE("(%p): stub\n", imageBase);
81 DWORD _CorValidateImage(LPCVOID* imageBase, LPCWSTR imageName)
83 TRACE("(%p, %s): stub\n", imageBase, debugstr_w(imageName));