diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2021-05-07 16:37:19 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2021-05-11 19:11:19 -0500 |
commit | a645cabc7a46adaa8f26d913bbb3cc5f9cd07820 (patch) | |
tree | fdfbc63bb4a24bf17d123c5e3ffe8b509d2d5176 /src/api/burn/WixToolset.Mba.Core/MbaNative.cs | |
parent | 27c6decae94536cae338731b6cb765aa92776486 (diff) | |
download | wix-a645cabc7a46adaa8f26d913bbb3cc5f9cd07820.tar.gz wix-a645cabc7a46adaa8f26d913bbb3cc5f9cd07820.tar.bz2 wix-a645cabc7a46adaa8f26d913bbb3cc5f9cd07820.zip |
Use balutil methods in Engine.cs to avoid size_t ugliness.
Diffstat (limited to 'src/api/burn/WixToolset.Mba.Core/MbaNative.cs')
-rw-r--r-- | src/api/burn/WixToolset.Mba.Core/MbaNative.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/api/burn/WixToolset.Mba.Core/MbaNative.cs b/src/api/burn/WixToolset.Mba.Core/MbaNative.cs new file mode 100644 index 00000000..a68a3907 --- /dev/null +++ b/src/api/burn/WixToolset.Mba.Core/MbaNative.cs | |||
@@ -0,0 +1,22 @@ | |||
1 | // 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. | ||
2 | |||
3 | namespace WixToolset.Mba.Core | ||
4 | { | ||
5 | using System; | ||
6 | using System.Runtime.InteropServices; | ||
7 | |||
8 | internal static class MbaNative | ||
9 | { | ||
10 | [DllImport("mbanative.dll", ExactSpelling = true, PreserveSig = false)] | ||
11 | internal static extern IBootstrapperEngine InitializeFromCreateArgs( | ||
12 | IntPtr pArgs, | ||
13 | ref Command pCommand | ||
14 | ); | ||
15 | |||
16 | [DllImport("mbanative.dll", ExactSpelling = true)] | ||
17 | internal static extern void StoreBAInCreateResults( | ||
18 | IntPtr pResults, | ||
19 | [MarshalAs(UnmanagedType.Interface)] IBootstrapperApplication pBA | ||
20 | ); | ||
21 | } | ||
22 | } | ||