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.
5 /*============================================================
9 ** Contains eventing constants defined by the Windows
12 ============================================================*/
13 #if ES_BUILD_STANDALONE
14 #define FEATURE_MANAGED_ETW_CHANNELS
17 #if ES_BUILD_STANDALONE
18 namespace Microsoft.Diagnostics.Tracing
20 namespace System.Diagnostics.Tracing
26 /// WindowsEventLevel. Custom values must be in the range from 16 through 255
28 public enum EventLevel
35 /// Only critical errors
39 /// All errors, including previous levels
43 /// All warnings, including previous levels
47 /// All informational events, including previous levels
51 /// All events, including previous levels
56 /// WindowsEventTask. Custom values must be in the range from 1 through 65534
66 /// EventOpcode. Custom values must be in the range from 11 through 239
68 public enum EventOpcode
71 /// An informational event
75 /// An activity start event
79 /// An activity end event
83 /// A trace collection start event
87 /// A trace collection end event
91 /// An extensional event
99 /// An event representing the activity resuming from the suspension
103 /// An event representing the activity is suspended, pending another activity's completion
107 /// An event representing the activity is transferred to another component, and can continue to work
111 /// An event representing receiving an activity transfer from another component
118 /// EventChannel. Custom values must be in the range from 16 through 255. Currently only predefined values allowed.
120 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1028:EnumStorageShouldBeInt32", Justification = "Backwards compatibility")]
121 public enum EventChannel : byte
127 // Channels 1 - 15 are reserved...
128 /// <summary>The admin channel</summary>
130 /// <summary>The operational channel</summary>
132 /// <summary>The analytic channel</summary>
134 /// <summary>The debug channel</summary>
143 public enum EventKeywords : long
156 MicrosoftTelemetry = 0x02000000000000,
158 /// WDI context events
160 WdiContext = 0x02000000000000,
162 /// WDI diagnostic events
164 WdiDiagnostic = 0x04000000000000,
168 Sqm = 0x08000000000000,
170 /// Failed security audits
172 AuditFailure = 0x10000000000000,
174 /// Successful security audits
176 AuditSuccess = 0x20000000000000,
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.
181 CorrelationHint = 0x10000000000000,
183 /// Events raised using classic eventlog API
185 EventLogClassic = 0x80000000000000