Beispiel #1
0
 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);
 }
Beispiel #2
0
 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);
 }