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.
10 #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
12 #include "mono/metadata/coree-internals.h"
14 BOOL STDMETHODCALLTYPE
15 _CorDllMain(HINSTANCE hInst, DWORD dwReason, LPVOID lpReserved)
17 g_unsupported_api ("_CorDllMain");
21 __int32 STDMETHODCALLTYPE
24 g_unsupported_api ("_CorExeMain");
25 ExitProcess (EXIT_FAILURE);
29 _CorValidateImage(PVOID *ImageBase, LPCWSTR FileName)
31 g_unsupported_api ("_CorValidateImage");
36 MonoLoadImage(LPCWSTR FileName)
38 g_unsupported_api ("MonoLoadImage");
43 mono_coree_set_act_ctx (const char *file_name)
45 g_unsupported_api ("CreateActCtx, ActivateActCtx");
46 SetLastError (ERROR_NOT_SUPPORTED);
51 #else /* G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) */
54 // Quiet Visual Studio linker warning, LNK4221, in cases when this source file intentional ends up empty.
55 void __mono_win32_coree_windows_uwp_quiet_lnk4221(void) {}
57 #endif /* G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) */