• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 180
  • Last Modified:

How do you change an EventLog's retention property

How do you programmatically change the property of an EventLog so that I can make the log over-write as needed rather than using the default of over-writing after 7 days?  I found the registry key that I could modify but I would prefer not to modify somebody else's registry key.  The .Net EventLog class does not seem to give me access to these properties.  Is there another way to do it through Win32 or something?
0
mnet_01
Asked:
mnet_01
1 Solution
 
gregoryyoungCommented:
everything I have seen sets it through the registry keys http://www.sanx.org/tipShow.asp?articleRef=127 I do not believe there is an api call fro this.
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now