Solved

Retrieving the actual size of the System Event Viewer

Posted on 2000-03-27
4
294 Views
Last Modified: 2010-04-02
How do the actual size of the System Event Viewer can be obtained(programatically) so that it can be compared with the current Event Viewer size from Win NT Event Viewer?
Only C or C++ functions, no MFC functions
I am using VC 5.0, Win NT 4.0 sp5
The actual set size of the System Event Viewer is needed not the current held size. The size of the Event Viewer can be set in the log settings... of the Event Viewer. That size is to be obtained.
0
Comment
Question by:PKothari
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 1

Expert Comment

by:tomkeane
ID: 2663024
Look at the EventLog APIs in MSDN.

The following functions should help you:

OpenEventLog()
CloseEventLog()
GetNumberOfEventLogRecords()
ReadEventLog()

Tom
0
 

Author Comment

by:PKothari
ID: 2663118
The actual set size of the System Event Viewer is needed not the current held size. The size of the Event Viewer can be set in the log settings... of the Event Viewer. That size is to be obtained.
0
 

Author Comment

by:PKothari
ID: 2663121
Edited text of question.
0
 
LVL 1

Accepted Solution

by:
tomkeane earned 20 total points
ID: 2663289
I'm assuming then that you want the Maximum size of the Event Log.  This is stored in the registry.  On my machine (Win2K) it is in
HKLM\System\CurrentControlSet\Services\EventLog\Application\MaxSize

You can, of course, access it using the Windows Registry API functions (Regxxx).

Tom
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

Suggested Solutions

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

730 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