aboutsummaryrefslogtreecommitdiff
path: root/src/dtf/WixToolset.Dtf.Resources/VersionEnums.cs
blob: 96e54b5165abb96c31dad6751f3b6da47c9c03b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// 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.

namespace WixToolset.Dtf.Resources
{
    // Silence warnings about doc-comments
    #pragma warning disable 1591

    using System;
    using System.Diagnostics.CodeAnalysis;

    /// <summary>
    /// Identifies build types of a versioned file.
    /// </summary>
    [Flags]
    public enum VersionBuildTypes : int
    {
        None         = 0x00,
        Debug        = 0x01,
        Prerelease   = 0x02,
        Patched      = 0x04,
        PrivateBuild = 0x08,
        InfoInferred = 0x10,
        SpecialBuild = 0x20,
    }

    [SuppressMessage("Microsoft.Design", "CA1027:MarkEnumsWithFlags")]
    internal enum VersionFileOS : int
    {
        Unknown       = 0x00000000,
        DOS           = 0x00010000,
        OS216         = 0x00020000,
        OS232         = 0x00030000,
        NT            = 0x00040000,
        WINCE         = 0x00050000,
        WINDOWS16     = 0x00000001,
        PM16          = 0x00000002,
        PM32          = 0x00000003,
        WINDOWS32     = 0x00000004,
        DOS_WINDOWS16 = 0x00010001,
        DOS_WINDOWS32 = 0x00010004,
        OS216_PM16    = 0x00020002,
        OS232_PM32    = 0x00030003,
        NT_WINDOWS32  = 0x00040004,
    }

    /// <summary>
    /// Identifies the type of a versioned file.
    /// </summary>
    [SuppressMessage("Microsoft.Design", "CA1027:MarkEnumsWithFlags")]
    public enum VersionFileType : int
    {
        Unknown       = 0,
        Application   = 1,
        Dll           = 2,
        Driver        = 3,
        Font          = 4,
        VirtualDevice = 5,
        StaticLibrary = 7,
    }

    /// <summary>
    /// Identifies the sub-type of a versioned file.
    /// </summary>
    public enum VersionFileSubtype : int
    {
        Unknown                = 0,
        PrinterDriver          = 1,
        KeyboardDriver         = 2,
        LanguageDriver         = 3,
        DisplayDriver          = 4,
        MouseDriver            = 5,
        NetworkDriver          = 6,
        SystemDriver           = 7,
        InstallableDriver      = 8,
        SoundDriver            = 9,
        [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Comm")]
        CommDriver             = 10,
        InputMethodDriver      = 11,
        VersionedPrinterDriver = 12,
        RasterFont             = 1,
        VectorFont             = 2,
        TrueTypeFont           = 3,
    }

    #pragma warning restore 1591
}