summaryrefslogtreecommitdiff
path: root/src/ilasm/MscorpeSxS.cpp
blob: b3b94f466b82182876808b175aae03f3b50ab902 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);
}