0

Is it possible somehow to catch attempt to clean the event log? So that I can cancel that attempt or make an archive and only then allow to clear the log. Or if it's not possible to catch such event, maybe there are other ways to force user to make only clearing with archiving? (Using .Net 3.5, Windows 7)

Thanks!

westwood
  • 1,774
  • 15
  • 29

1 Answers1

-1

You can control access for the event log. There are many access levels. You can use EventLogPermission Class. You can specify access levels by using

public enum EventLogPermissionAccess { Write };

AkshayP
  • 188
  • 3
  • 11
  • That doesn't answer the question, which is about sort of handling event of cleaning log, but not restricting doing that. – alex.b Oct 11 '12 at 08:53