Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying a sample in mfc where i need to read the event logs and get the information from that logs in a string format.
How do i read event logs out of the system and present the strings out of the event logs.

What I have tried:

i tried something like OpenEventLog and ReadEventLog
Posted
Updated 23-Jan-18 22:13pm
v2

1 solution

Those are the correct functions to get event log records. Each record is structured as described in EVENTLOGRECORD structure (Windows)[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900