根据日期和时间查询事件日志 [英] Query Event Logs based on date and time
本文介绍了根据日期和时间查询事件日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在VC6中编写MFC应用程序.我能够将消息记录到事件日志中.
现在,我想根据某个时间和日期来查询日志消息.
我搜索了Google,我所能获得的就是将msg记录到事件查看器中.微软论坛对我没有太大帮助.
请引导我,并指出我可以找到参考的位置并继续进行操作.
问候
Dheeraj
Hi,
I am writing a MFC app in VC6. I was able log messages to Event Log.
Now i want to query for log messages based on some time and date.
I searched Google, all I could get was logging the msgs to event viewer. Microsoft forum was not much a help for me.
Please guide me through and point me to a location where i could find a reference and proceed further.
Regards
Dheeraj
推荐答案
请在此处查看:
Windows 2000中的事件记录 [事件记录,第一部分:XEventLog-基本的NT事件记录 [ ^ ]
将邮件发送到Windows EventLog的简单类 [ ^ ]
http://www.codeguru.com/columns/dotnettips/article.php/c8897/Managed-C-Reading-and-Writing-Windows-Event-Log-Entries.htm [
Please look here:
Event Logging in Windows 2000[^]
Event Logging, Part I: XEventLog - Basic NT Event Logging[^]
Simple class to fire messages to Windows EventLog[^]
http://www.codeguru.com/columns/dotnettips/article.php/c8897/Managed-C-Reading-and-Writing-Windows-Event-Log-Entries.htm[^]
这篇关于根据日期和时间查询事件日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文