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?
mnet_01Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
gregoryyoungConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.