main
cs 59 lines 2.01 KB
Raw
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.Data
4 {
5 using System;
6 using WixToolset.Data.Symbols;
7
8 public static partial class SymbolDefinitions
9 {
10 [Obsolete]
11 public static readonly IntermediateSymbolDefinition WixBootstrapperApplicationDll = new IntermediateSymbolDefinition(
12 SymbolDefinitionType.WixBootstrapperApplicationDll,
13 new IntermediateFieldDefinition[]
14 {
15 new IntermediateFieldDefinition(nameof(WixBootstrapperApplicationDllSymbolFields.DpiAwareness), IntermediateFieldType.Number),
16 },
17 typeof(WixBootstrapperApplicationDllSymbol));
18 }
19 }
20
21 namespace WixToolset.Data.Symbols
22 {
23 using System;
24
25 public enum WixBootstrapperApplicationDllSymbolFields
26 {
27 DpiAwareness,
28 }
29
30 [Obsolete]
31 public enum WixBootstrapperApplicationDpiAwarenessType
32 {
33 Unaware,
34 System,
35 PerMonitor,
36 PerMonitorV2,
37 GdiScaled,
38 }
39
40 [Obsolete]
41 public class WixBootstrapperApplicationDllSymbol : IntermediateSymbol
42 {
43 public WixBootstrapperApplicationDllSymbol() : base(SymbolDefinitions.WixBootstrapperApplicationDll, null, null)
44 {
45 }
46
47 public WixBootstrapperApplicationDllSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBootstrapperApplicationDll, sourceLineNumber, id)
48 {
49 }
50
51 public IntermediateField this[WixBootstrapperApplicationDllSymbolFields index] => this.Fields[(int)index];
52
53 public WixBootstrapperApplicationDpiAwarenessType DpiAwareness
54 {
55 get => (WixBootstrapperApplicationDpiAwarenessType)this.Fields[(int)WixBootstrapperApplicationDllSymbolFields.DpiAwareness].AsNumber();
56 set => this.Set((int)WixBootstrapperApplicationDllSymbolFields.DpiAwareness, (int)value);
57 }
58 }
59 }