// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*============================================================
**
** File: winmeta.cs
**
** Purpose:
** Contains eventing constants defined by the Windows
** environment.
**
============================================================*/
using System.Diagnostics.CodeAnalysis;
namespace System.Diagnostics.Eventing.Reader {
///
/// WindowsEventLevel
///
public enum StandardEventLevel {
///
/// Log always
///
LogAlways = 0,
///
/// Only critical errors
///
Critical,
///
/// All errors, including previous levels
///
Error,
///
/// All warnings, including previous levels
///
Warning,
///
/// All informational events, including previous levels
///
Informational,
///
/// All events, including previous levels
///
Verbose
}
///
/// WindowsEventTask
///
public enum StandardEventTask {
///
/// Undefined task
///
None = 0
}
///
/// EventOpcode
///
[SuppressMessage("Microsoft.Naming","CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId="Opcode", Justification="matell: Shipped public in 3.5, breaking change to fix now.")]
public enum StandardEventOpcode {
///
/// An informational event
///
Info = 0,
///
/// An activity start event
///
Start,
///
/// An activity end event
///
Stop,
///
/// A trace collection start event
///
DataCollectionStart,
///
/// A trace collection end event
///
DataCollectionStop,
///
/// An extensional event
///
Extension,
///
/// A reply event
///
Reply,
///
/// An event representing the activity resuming from the suspension
///
Resume,
///
/// An event representing the activity is suspended, pending another activity's completion
///
Suspend,
///
/// An event representing the activity is transferred to another component, and can continue to work
///
Send,
///
/// An event representing receiving an activity transfer from another component
///
Receive = 240
}
///
/// EventOpcode
///
[Flags]
public enum StandardEventKeywords : long {
///
/// Wild card value
///
None = 0x0,
///
/// Events providing response time information
///
ResponseTime = 0x01000000000000,
///
/// WDI context events
///
WdiContext = 0x02000000000000,
///
/// WDI diagnostic events
///
WdiDiagnostic = 0x04000000000000,
///
/// SQM events
///
Sqm = 0x08000000000000,
///
/// FAiled security audits
///
AuditFailure = 0x10000000000000,
///
/// Successful security audits
///
AuditSuccess = 0x20000000000000,
///
/// Incorrect CorrelationHint value mistakenly shipped in .NET 3.5. Don't use: duplicates AuditFailure.
///
[Obsolete("Incorrect value: use CorrelationHint2 instead", false)]
CorrelationHint = 0x10000000000000,
///
/// Transfer events where the related Activity ID is a computed value and not a GUID
///
CorrelationHint2 = 0x40000000000000,
///
/// Events raised using classic eventlog API
///
EventLogClassic = 0x80000000000000
}
}