Solved

How do you change an EventLog's retention property

Posted on 2004-08-06
1
161 Views
Last Modified: 2010-04-15
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
Comment
Question by:mnet_01
1 Comment
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 250 total points
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now