Solved

current occupied size of System Event Log

Posted on 2000-03-30
4
243 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
[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 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

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…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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…

740 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