@joebigelow / wix / commits / 35d08c15

WIXFEAT:6204 Add DpiAwareness to WixBootstrapperApplicationSymbol.

Sean Hall committed Jul 19, 2020 at 16:16 UTC 35d08c1563f69a1e0bfa47823f82d27120885b94
1 file changed +17
src/WixToolset.Data/Symbols/WixBootstrapperApplicationSymbol.cs
+17
@@ -10,6 +10,7 @@ namespace WixToolset.Data
10 SymbolDefinitionType.WixBootstrapperApplication,
11 new IntermediateFieldDefinition[]
12 {
13 + new IntermediateFieldDefinition(nameof(WixBootstrapperApplicationSymbolFields.DpiAwareness), IntermediateFieldType.Number),
14 },
15 typeof(WixBootstrapperApplicationSymbol));
16 }
@@ -19,6 +20,16 @@ namespace WixToolset.Data.Symbols
20 {
21 public enum WixBootstrapperApplicationSymbolFields
22 {
23 + DpiAwareness,
24 + }
25 +
26 + public enum WixBootstrapperApplicationDpiAwarenessType
27 + {
28 + Unaware,
29 + System,
30 + PerMonitor,
31 + PerMonitorV2,
32 + GdiScaled,
33 }
34
35 public class WixBootstrapperApplicationSymbol : IntermediateSymbol
@@ -32,5 +43,11 @@ namespace WixToolset.Data.Symbols
43 }
44
45 public IntermediateField this[WixBootstrapperApplicationSymbolFields index] => this.Fields[(int)index];
46 +
47 + public WixBootstrapperApplicationDpiAwarenessType DpiAwareness
48 + {
49 + get => (WixBootstrapperApplicationDpiAwarenessType)this.Fields[(int)WixBootstrapperApplicationSymbolFields.DpiAwareness].AsNumber();
50 + set => this.Set((int)WixBootstrapperApplicationSymbolFields.DpiAwareness, (int)value);
51 + }
52 }
53 }