Delete FriendAccessAllowedAttribute and associated dead code (#15101)
[platform/upstream/coreclr.git] / src / mscorlib / shared / System / Diagnostics / Tracing / Winmeta.cs
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
4
5 /*============================================================
6 **
7 **
8 ** Purpose: 
9 ** Contains eventing constants defined by the Windows 
10 ** environment.
11 ** 
12 ============================================================*/
13 #if ES_BUILD_STANDALONE
14 #define FEATURE_MANAGED_ETW_CHANNELS
15 #endif
16
17 #if ES_BUILD_STANDALONE
18 namespace Microsoft.Diagnostics.Tracing
19 #else
20 namespace System.Diagnostics.Tracing
21 #endif
22 {
23     using System;
24
25     /// <summary>
26     /// WindowsEventLevel. Custom values must be in the range from 16 through 255
27     /// </summary>
28     public enum EventLevel
29     {
30         /// <summary>
31         /// Log always
32         /// </summary>
33         LogAlways = 0,
34         /// <summary>
35         /// Only critical errors
36         /// </summary>
37         Critical,
38         /// <summary>
39         /// All errors, including previous levels
40         /// </summary>
41         Error,
42         /// <summary>
43         /// All warnings, including previous levels
44         /// </summary>
45         Warning,
46         /// <summary>
47         /// All informational events, including previous levels
48         /// </summary>
49         Informational,
50         /// <summary>
51         /// All events, including previous levels 
52         /// </summary>
53         Verbose
54     }
55     /// <summary>
56     /// WindowsEventTask. Custom values must be in the range from 1 through 65534
57     /// </summary>
58     public enum EventTask
59     {
60         /// <summary>
61         /// Undefined task
62         /// </summary>
63         None = 0
64     }
65     /// <summary>
66     /// EventOpcode. Custom values must be in the range from 11 through 239
67     /// </summary>
68     public enum EventOpcode
69     {
70         /// <summary>
71         /// An informational event
72         /// </summary>
73         Info = 0,
74         /// <summary>
75         /// An activity start event
76         /// </summary>
77         Start,
78         /// <summary>
79         /// An activity end event 
80         /// </summary>
81         Stop,
82         /// <summary>
83         /// A trace collection start event
84         /// </summary>
85         DataCollectionStart,
86         /// <summary>
87         /// A trace collection end event
88         /// </summary>
89         DataCollectionStop,
90         /// <summary>
91         /// An extensional event
92         /// </summary>
93         Extension,
94         /// <summary>
95         /// A reply event
96         /// </summary>
97         Reply,
98         /// <summary>
99         /// An event representing the activity resuming from the suspension
100         /// </summary>
101         Resume,
102         /// <summary>
103         /// An event representing the activity is suspended, pending another activity's completion
104         /// </summary>
105         Suspend,
106         /// <summary>
107         /// An event representing the activity is transferred to another component, and can continue to work
108         /// </summary>
109         Send,
110         /// <summary>
111         /// An event representing receiving an activity transfer from another component 
112         /// </summary>
113         Receive = 240
114     }
115
116     // Added for CLR V4
117     /// <summary>
118     /// EventChannel. Custom values must be in the range from 16 through 255. Currently only predefined values allowed.
119     /// </summary>
120     [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1028:EnumStorageShouldBeInt32", Justification = "Backwards compatibility")]
121     public enum EventChannel : byte
122     {
123         /// <summary>
124         /// No channel
125         /// </summary>
126         None = 0,
127         // Channels 1 - 15 are reserved...
128         /// <summary>The admin channel</summary>
129         Admin = 16,
130         /// <summary>The operational channel</summary>
131         Operational = 17,
132         /// <summary>The analytic channel</summary>
133         Analytic = 18,
134         /// <summary>The debug channel</summary>
135         Debug = 19,
136
137     };
138
139     /// <summary>
140     /// EventOpcode
141     /// </summary>
142     [Flags]
143     public enum EventKeywords : long
144     {
145         /// <summary>
146         /// No events. 
147         /// </summary>
148         None = 0x0,
149         /// <summary>
150         /// All Events 
151         /// </summary>
152         All = ~0,
153         /// <summary>
154         /// Telemetry events
155         /// </summary>
156         MicrosoftTelemetry = 0x02000000000000,
157         /// <summary>
158         /// WDI context events
159         /// </summary>
160         WdiContext = 0x02000000000000,
161         /// <summary>
162         /// WDI diagnostic events
163         /// </summary>
164         WdiDiagnostic = 0x04000000000000,
165         /// <summary>
166         /// SQM events
167         /// </summary>
168         Sqm = 0x08000000000000,
169         /// <summary>
170         /// Failed security audits
171         /// </summary>
172         AuditFailure = 0x10000000000000,
173         /// <summary>
174         /// Successful security audits
175         /// </summary>
176         AuditSuccess = 0x20000000000000,
177         /// <summary>
178         /// Transfer events where the related Activity ID is a computed value and not a GUID
179         /// N.B. The correct value for this field is 0x40000000000000.
180         /// </summary>
181         CorrelationHint = 0x10000000000000,
182         /// <summary>
183         /// Events raised using classic eventlog API
184         /// </summary>
185         EventLogClassic = 0x80000000000000
186     }
187 }