Fix roslyn install with AOT disabled.
[mono-project.git] / mono / metadata / coree-windows-uwp.c
blobd75660775e7153a663bcf048cdd7046b92eea063
1 /*
2 * coree-windows-uwp.c: UWP coree support for Mono.
4 * Copyright 2016 Microsoft
5 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
6 */
7 #include <config.h>
8 #include <glib.h>
9 #include "mono/utils/mono-compiler.h"
11 #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
12 #include <windows.h>
13 #include "mono/metadata/coree-internals.h"
15 BOOL STDMETHODCALLTYPE
16 _CorDllMain(HINSTANCE hInst, DWORD dwReason, LPVOID lpReserved)
18 g_unsupported_api ("_CorDllMain");
19 return FALSE;
22 __int32 STDMETHODCALLTYPE
23 _CorExeMain(void)
25 g_unsupported_api ("_CorExeMain");
26 ExitProcess (EXIT_FAILURE);
29 STDAPI
30 _CorValidateImage(PVOID *ImageBase, LPCWSTR FileName)
32 g_unsupported_api ("_CorValidateImage");
33 return E_UNEXPECTED;
36 HMODULE WINAPI
37 MonoLoadImage(LPCWSTR FileName)
39 g_unsupported_api ("MonoLoadImage");
40 return NULL;
43 void
44 mono_coree_set_act_ctx (const char *file_name)
46 g_unsupported_api ("CreateActCtx, ActivateActCtx");
47 SetLastError (ERROR_NOT_SUPPORTED);
49 return;
52 #else /* G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) */
54 MONO_EMPTY_SOURCE_FILE (coree_windows_uwp);
55 #endif /* G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) */