private static void RegisterEventSource() { EventSourceInstaller.InstallSecurityEventSource( EventLogName, null, //@"D:\Auditing\SampleApplication\SampleMessageFile.DLL", null, null, Assembly.GetEntryAssembly().Location, //@"D:\Auditing\SampleApplication\Ogamat.AuditProvider.Examples.exe", false); }
private void InstallMPAuditLog(string path) { EventSourceInstaller.InstallSecurityEventSource("MSExchange Messaging Policies", Path.Combine(path, "bin\\RulesAuditMsg.DLL"), null, null, Path.Combine(path, "bin\\EdgeTransport.exe"), false); }