Пример #1
0
 static EtwDiagnosticTrace()
 {
     // In Partial Trust, initialize to Guid.Empty to disable ETW Tracing.
     if (!PartialTrustHelpers.HasEtwPermissions())
     {
         defaultEtwProviderId = Guid.Empty;
     }
 }
Пример #2
0
 static EtwDiagnosticTrace()
 {
     EtwDiagnosticTrace.ImmutableDefaultEtwProviderId = new Guid("{c651f5f6-1c0d-492e-8ae1-b4efd7c9d503}");
     EtwDiagnosticTrace.defaultEtwProviderId          = EtwDiagnosticTrace.ImmutableDefaultEtwProviderId;
     EtwDiagnosticTrace.etwProviderCache        = new Hashtable();
     EtwDiagnosticTrace.isVistaOrGreater        = Environment.OSVersion.Version.Major >= 6;
     EtwDiagnosticTrace.transferEventDescriptor = new EventDescriptor(0x1f3, 0, 18, 0, 0, 0, 0x20000000001a0065L);
     if (!PartialTrustHelpers.HasEtwPermissions())
     {
         EtwDiagnosticTrace.defaultEtwProviderId = Guid.Empty;
     }
 }