[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Retrieving the actual size of the System Event Viewer

Posted on 2000-03-27
4
Medium Priority
?
306 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 60 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
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.
Suggested Courses

650 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