Solved

current occupied size of System Event Log

Posted on 2000-03-30
4
242 Views
Last Modified: 2010-04-02
How can I find the currently occupied size of the System Event Log (programatically) using VC 5,
on Win NT 4.0, sp 5.
0
Comment
Question by:thangamani
  • 2
  • 2
4 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 25 total points
ID: 2672846
You can use the GetNumberOfEventLogRecords() function.

Let me know if you have any questions.
0
 

Author Comment

by:thangamani
ID: 2675557
Can the size be found using GetNumberOfEventLogRecords() function. This only gives the number of records only
0
 

Author Comment

by:thangamani
ID: 2675565
Can the size be found using GetNumberOfEventLogRecords() function. This only gives the number of records only.Can the answer be more clear

0
 
LVL 22

Expert Comment

by:nietod
ID: 2675834
You've already graded the answer and given me a bad grade.  Now you want more help?   If you want more help you should not grade the answer, then you could reject the answer if the additional help is not available or your could potentially give a a good grade if you get the answer you are looking for.

There is no even-related function that returns the size in bytes--basically no one really cares about that.  but you can use the GetFileSize() function to get the size of the even file (or any file) in bytes.
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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
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++.

856 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