public static void InitMonitors() { try { if (SettingsManager.WebAgent) { WebMonitor.Initialize(); WebMonitor.Start(); } if (SettingsManager.Firewall) { Firewall.Init(); Firewall.AccessDenied += new DenyRule(Firewall_AccessDenied); Firewall.Start(); } if (SettingsManager.NIDS) { NetworkMonitor.Initialize(SettingsManager.BrekleyFilter); NetworkMonitor.Start(); } if (SettingsManager.SystemMonitor) { FileSystemMonitor.Initialize(SettingsManager.HighSense); FileSystemMonitor.Start(); } DriveDetector detect = new DriveDetector(); detect.DeviceArrived += new DriveDetectorEventHandler(detect_DeviceArrived); Protected = true; } catch (Exception ex) { AntiCrash.LogException(ex); } finally { } }