diff options
author | Rob Mensching <rob@firegiant.com> | 2024-03-06 14:48:10 -0800 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2024-03-07 10:55:57 -0800 |
commit | 3d2d46f62fc01e2653d0251ad9703090574e7c41 (patch) | |
tree | ffdf7dce6c646f38b5e3ad8325c2ce78ca891a1a /src/api/burn/WixToolset.BootstrapperApplicationApi/BalUtil.cs | |
parent | a8504dc4eb1c2d09965b0858699ac737336ef3c1 (diff) | |
download | wix-3d2d46f62fc01e2653d0251ad9703090574e7c41.tar.gz wix-3d2d46f62fc01e2653d0251ad9703090574e7c41.tar.bz2 wix-3d2d46f62fc01e2653d0251ad9703090574e7c41.zip |
Better .nupkg names
Diffstat (limited to 'src/api/burn/WixToolset.BootstrapperApplicationApi/BalUtil.cs')
-rw-r--r-- | src/api/burn/WixToolset.BootstrapperApplicationApi/BalUtil.cs | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/api/burn/WixToolset.BootstrapperApplicationApi/BalUtil.cs b/src/api/burn/WixToolset.BootstrapperApplicationApi/BalUtil.cs new file mode 100644 index 00000000..25257554 --- /dev/null +++ b/src/api/burn/WixToolset.BootstrapperApplicationApi/BalUtil.cs | |||
@@ -0,0 +1,53 @@ | |||
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.BootstrapperApplicationApi | ||
4 | { | ||
5 | using System; | ||
6 | using System.Runtime.InteropServices; | ||
7 | |||
8 | internal static class BalUtil | ||
9 | { | ||
10 | [DllImport("mbanative.dll", ExactSpelling = true)] | ||
11 | internal static extern int BalEscapeStringFromEngine( | ||
12 | [MarshalAs(UnmanagedType.Interface)] IBootstrapperEngine pEngine, | ||
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 | ||
36 | ); | ||
37 | |||
38 | [DllImport("mbanative.dll", ExactSpelling = true)] | ||
39 | internal static extern int BalGetRelatedBundleVariableFromEngine( | ||
40 | [MarshalAs(UnmanagedType.Interface)] IBootstrapperEngine pEngine, | ||
41 | [MarshalAs(UnmanagedType.LPWStr)] string wzBundleId, | ||
42 | [MarshalAs(UnmanagedType.LPWStr)] string wzVariable, | ||
43 | ref StrUtil.StrHandle psczOut | ||
44 | ); | ||
45 | |||
46 | [DllImport("mbanative.dll", ExactSpelling = true)] | ||
47 | [return: MarshalAs(UnmanagedType.Bool)] | ||
48 | internal static extern bool BalVariableExistsFromEngine( | ||
49 | [MarshalAs(UnmanagedType.Interface)] IBootstrapperEngine pEngine, | ||
50 | [MarshalAs(UnmanagedType.LPWStr)] string wzVariable | ||
51 | ); | ||
52 | } | ||
53 | } | ||