aboutsummaryrefslogtreecommitdiff
path: root/src/ext/Bal/dnchost/dncutil.h
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2021-05-03 15:55:48 -0700
committerRob Mensching <rob@firegiant.com>2021-05-03 15:55:48 -0700
commitba7bab476501c16e437b0aee71c1be02c3dda176 (patch)
tree814fba485c29a7dfe1adb396169e27ed641ef9a3 /src/ext/Bal/dnchost/dncutil.h
parent14987a72cc1a3493ca8f80693d273352fc314bd9 (diff)
downloadwix-ba7bab476501c16e437b0aee71c1be02c3dda176.tar.gz
wix-ba7bab476501c16e437b0aee71c1be02c3dda176.tar.bz2
wix-ba7bab476501c16e437b0aee71c1be02c3dda176.zip
Move Bal.wixext into ext
Diffstat (limited to 'src/ext/Bal/dnchost/dncutil.h')
-rw-r--r--src/ext/Bal/dnchost/dncutil.h38
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
4typedef IBootstrapperApplicationFactory* (STDMETHODCALLTYPE* PFNCREATEBAFACTORY)(
5 __in LPCWSTR wzBaFactoryAssemblyName,
6 __in LPCWSTR wzBaFactoryAssemblyPath
7 );
8
9struct 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
25HRESULT DnchostLoadRuntime(
26 __in HOSTFXR_STATE* pState,
27 __in LPCWSTR wzNativeHostPath,
28 __in LPCWSTR wzManagedHostPath,
29 __in LPCWSTR wzDepsJsonPath,
30 __in LPCWSTR wzRuntimeConfigPath
31 );
32
33HRESULT DnchostCreateFactory(
34 __in HOSTFXR_STATE* pState,
35 __in LPCWSTR wzBaFactoryAssemblyName,
36 __in LPCWSTR wzBaFactoryAssemblyPath,
37 __out IBootstrapperApplicationFactory** ppAppFactory
38 );