Пример #1
0
		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;
			}
		}
Пример #2
0
 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);
 }