blob: 93dc90e96c7acd87dae88a404d4019031f57a707 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// 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.
#ifndef CORECLRLOADER_H
#define CORECLRLOADER_H
typedef int (*InitializeCoreCLRFunction)(
const char* exePath,
const char* appDomainFriendlyName,
int propertyCount,
const char** propertyKeys,
const char** propertyValues,
void** hostHandle,
unsigned int* domainId);
typedef int (*ShutdownCoreCLRFunction)(
void* hostHandle,
unsigned int domainId);
class CoreCLRLoader
{
private:
InitializeCoreCLRFunction initializeCoreCLR;
ShutdownCoreCLRFunction shutdownCoreCLR;
void *coreclrLib;
void* hostHandle;
unsigned int domainId;
public:
static CoreCLRLoader* Create(const char *coreClrPath);
void* LoadFunction(const char* functionName);
int Finish();
};
#endif // CORECLRLOADER_H
|