aboutsummaryrefslogtreecommitdiff
path: root/src/api/burn/WixToolset.Mba.Core/BalUtil.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/burn/WixToolset.Mba.Core/BalUtil.cs')
-rw-r--r--src/api/burn/WixToolset.Mba.Core/BalUtil.cs37
1 files changed, 30 insertions, 7 deletions
diff --git a/src/api/burn/WixToolset.Mba.Core/BalUtil.cs b/src/api/burn/WixToolset.Mba.Core/BalUtil.cs
index f478eca4..4c949a5a 100644
--- a/src/api/burn/WixToolset.Mba.Core/BalUtil.cs
+++ b/src/api/burn/WixToolset.Mba.Core/BalUtil.cs
@@ -7,16 +7,39 @@ namespace WixToolset.Mba.Core
7 7
8 internal static class BalUtil 8 internal static class BalUtil
9 { 9 {
10 [DllImport("mbanative.dll", ExactSpelling = true, PreserveSig = false)] 10 [DllImport("mbanative.dll", ExactSpelling = true)]
11 internal static extern IBootstrapperEngine InitializeFromCreateArgs( 11 internal static extern int BalEscapeStringFromEngine(
12 IntPtr pArgs, 12 [MarshalAs(UnmanagedType.Interface)] IBootstrapperEngine pEngine,
13 ref Command pCommand 13 [MarshalAs(UnmanagedType.LPWStr)] string wzIn,
14 ref StrUtil.StrHandle psczOut
15 );
16
17 [DllImport("mbanative.dll", ExactSpelling = true)]
18 internal static extern int BalFormatStringFromEngine(
19 [MarshalAs(UnmanagedType.Interface)] IBootstrapperEngine pEngine,
20 [MarshalAs(UnmanagedType.LPWStr)] string wzFormat,
21 ref StrUtil.StrHandle psczOut
22 );
23
24 [DllImport("mbanative.dll", ExactSpelling = true)]
25 internal static extern int BalGetStringVariableFromEngine(
26 [MarshalAs(UnmanagedType.Interface)] IBootstrapperEngine pEngine,
27 [MarshalAs(UnmanagedType.LPWStr)] string wzVariable,
28 ref StrUtil.StrHandle psczOut
29 );
30
31 [DllImport("mbanative.dll", ExactSpelling = true)]
32 internal static extern int BalGetVersionVariableFromEngine(
33 [MarshalAs(UnmanagedType.Interface)] IBootstrapperEngine pEngine,
34 [MarshalAs(UnmanagedType.LPWStr)] string wzVariable,
35 ref StrUtil.StrHandle psczOut
14 ); 36 );
15 37
16 [DllImport("mbanative.dll", ExactSpelling = true)] 38 [DllImport("mbanative.dll", ExactSpelling = true)]
17 internal static extern void StoreBAInCreateResults( 39 [return: MarshalAs(UnmanagedType.Bool)]
18 IntPtr pResults, 40 internal static extern bool BalVariableExistsFromEngine(
19 [MarshalAs(UnmanagedType.Interface)] IBootstrapperApplication pBA 41 [MarshalAs(UnmanagedType.Interface)] IBootstrapperEngine pEngine,
42 [MarshalAs(UnmanagedType.LPWStr)] string wzVariable
20 ); 43 );
21 } 44 }
22} 45}