Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How do you change an EventLog's retention property

Posted on 2004-08-06
1
Medium Priority
?
179 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 1000 total points
ID: 11737150
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses
Course of the Month11 days, 21 hours left to enroll

916 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