diff options
Diffstat (limited to 'src/ilasm/MscorpeSxS.cpp')
-rw-r--r-- | src/ilasm/MscorpeSxS.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/ilasm/MscorpeSxS.cpp b/src/ilasm/MscorpeSxS.cpp new file mode 100644 index 0000000000..b3b94f466b --- /dev/null +++ b/src/ilasm/MscorpeSxS.cpp @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. +// +// File: MscorpeSxS.cpp +// + +// +// This file defines a wrapper for SxS version of mscorpe.dll (dynamically loaded via shim). +// +#include "ilasmpch.h" + +#include "MscorpeSxS.h" + +#include <LegacyActivationShim.h> + +// Loads mscorpe.dll (uses shim) +HRESULT +LoadMscorpeDll(HMODULE * phModule) +{ + // Load SxS version of mscorpe.dll (i.e. mscorpehost.dll) and initialize it + return LegacyActivationShim::LoadLibraryShim(L"mscorpe.dll", NULL, NULL, phModule); +} |