Solved

Retrieving the actual size of the System Event Viewer

Posted on 2000-03-27
4
287 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
std::atomic with custom class 6 190
how to convert c++ code to Android App 3 83
C++ mouse_event mouse look 7 70
VS2015 Redefinition errors 4 29
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

895 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

15 Experts available now in Live!

Get 1:1 Help Now