diff options
Diffstat (limited to 'src/ext/Bal/dnchost/dncutil.h')
-rw-r--r-- | src/ext/Bal/dnchost/dncutil.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/ext/Bal/dnchost/dncutil.h b/src/ext/Bal/dnchost/dncutil.h new file mode 100644 index 00000000..85eda3b2 --- /dev/null +++ b/src/ext/Bal/dnchost/dncutil.h | |||
@@ -0,0 +1,38 @@ | |||
1 | #pragma once | ||
2 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
3 | |||
4 | typedef IBootstrapperApplicationFactory* (STDMETHODCALLTYPE* PFNCREATEBAFACTORY)( | ||
5 | __in LPCWSTR wzBaFactoryAssemblyName, | ||
6 | __in LPCWSTR wzBaFactoryAssemblyPath | ||
7 | ); | ||
8 | |||
9 | struct HOSTFXR_STATE | ||
10 | { | ||
11 | LPWSTR sczHostfxrPath; | ||
12 | hostfxr_handle hostContextHandle; | ||
13 | hostfxr_initialize_for_dotnet_command_line_fn pfnHostfxrInitializeForApp; | ||
14 | hostfxr_get_runtime_properties_fn pfnHostfxrGetRuntimeProperties; | ||
15 | hostfxr_set_error_writer_fn pfnHostfxrSetErrorWriter; | ||
16 | hostfxr_close_fn pfnHostfxrClose; | ||
17 | hostfxr_get_runtime_delegate_fn pfnHostfxrGetRuntimeDelegate; | ||
18 | get_function_pointer_fn pfnGetFunctionPointer; | ||
19 | coreclr_initialize_ptr pfnCoreclrInitialize; | ||
20 | coreclr_create_delegate_ptr pfnCoreclrCreateDelegate; | ||
21 | void* pClrHandle; | ||
22 | UINT dwDomainId; | ||
23 | }; | ||
24 | |||
25 | HRESULT DnchostLoadRuntime( | ||
26 | __in HOSTFXR_STATE* pState, | ||
27 | __in LPCWSTR wzNativeHostPath, | ||
28 | __in LPCWSTR wzManagedHostPath, | ||
29 | __in LPCWSTR wzDepsJsonPath, | ||
30 | __in LPCWSTR wzRuntimeConfigPath | ||
31 | ); | ||
32 | |||
33 | HRESULT DnchostCreateFactory( | ||
34 | __in HOSTFXR_STATE* pState, | ||
35 | __in LPCWSTR wzBaFactoryAssemblyName, | ||
36 | __in LPCWSTR wzBaFactoryAssemblyPath, | ||
37 | __out IBootstrapperApplicationFactory** ppAppFactory | ||
38 | ); | ||