如何从系统中读取事件日志并从事件日志中显示字符串。 [英] How do I read event logs out of the system and present the strings out of the event logs.
本文介绍了如何从系统中读取事件日志并从事件日志中显示字符串。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在mfc中尝试一个示例,我需要读取事件日志并以字符串格式从日志中获取信息。
如何从系统中读取事件日志并显示事件日志中的字符串。
我尝试过:
i尝试类似OpenEventLog和ReadEventLog
解决方案
这些是获取事件日志记录的正确函数。每条记录的结构如 EVENTLOGRECORD结构(Windows)中所述/ a> [ ^ ]。
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
解决方案
Those are the correct functions to get event log records. Each record is structured as described in EVENTLOGRECORD structure (Windows)[^].
这篇关于如何从系统中读取事件日志并从事件日志中显示字符串。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文