internal EventTraceProvider(Guid id, string name, bool from_xml) { Id = id; Name = name; FromXml = from_xml; SecurityDescriptor = EventTracing.QueryTraceSecurity(Id, false).GetResultOrDefault(); }
public override void Trigger() { using (var reg = EventTracing.Register(SubType)) { reg.Write(); } }
internal EventTraceProvider(Guid id, string name, bool from_xml) { Id = id; Name = name; FromXml = from_xml; _security_descriptor = new Lazy <SecurityDescriptor>(() => EventTracing.QueryTraceSecurity(Id, false).GetResultOrDefault()); Source = EventTraceProviderSource.WMI; }
internal EtwServiceTriggerInformation(SERVICE_TRIGGER trigger) : base(trigger) { var sd = EventTracing.QueryTraceSecurity(SubType, false); if (sd.IsSuccess) { SecurityDescriptor = sd.Result; } else { SecurityDescriptor = new SecurityDescriptor(); } }