Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

current occupied size of System Event Log

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
thangamani
Asked:
thangamani
  • 2
  • 2
1 Solution
 
nietodCommented:
You can use the GetNumberOfEventLogRecords() function.

Let me know if you have any questions.
0
 
thangamaniAuthor Commented:
Can the size be found using GetNumberOfEventLogRecords() function. This only gives the number of records only
0
 
thangamaniAuthor Commented:
Can the size be found using GetNumberOfEventLogRecords() function. This only gives the number of records only.Can the answer be more clear

0
 
nietodCommented:
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now