private string GetEventTypeString(NTLogEvent.EventTypeValues val) { switch (val) { case NTLogEvent.EventTypeValues.Error : return EventTypeDescription.Error; case NTLogEvent.EventTypeValues.Warning : return EventTypeDescription.Warning; case NTLogEvent.EventTypeValues.Information : return EventTypeDescription.Information; case NTLogEvent.EventTypeValues.Security_audit_success : return EventTypeDescription.SuccessAudit; case NTLogEvent.EventTypeValues.Security_audit_failure : return EventTypeDescription.FailureAudit; default : return EventTypeDescription.Unknown; } }
public NTLogEvent(System.Management.ManagementScope mgmtScope, string keyLogfile, uint keyRecordNumber) { this.InitializeObject(((System.Management.ManagementScope)(mgmtScope)), new System.Management.ManagementPath(NTLogEvent.ConstructPath(keyLogfile, keyRecordNumber)), null); }