急急。。vb里如何读 NT系统事件日志?有结果立刻给分! 可以得,去www.21code.com看看我看到过源代码,是一个外国人写的,很好,不过被我弄丢了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 C# code应用程序日志Application,系统日志System,安全日志Security写入日志:byte[] myByte=new byte[10]; for(int i=0;i<10;i++) { myByte[i]= (byte)(i % 2); } // Write an informational entry to the event log. EventLog.WriteEntry("SecondSource","Writing warning to event log.", EventLogEntryType.Error,123,1 ,myByte);读取日志: EventLog sample=new EventLog(); sample.Log="Application"; EventLogEntryCollection myCollection=sample.Entries; foreach(EventLogEntry test in myCollection) { Console.WriteLine(test.Message,test.Source,test.EventID); } http://www.csdn.net/Expert/TopicView1.asp?id=701643 http://www.csdn.net/expert/topic/701/701643.xml?temp=.4687006 To : lyqof908(刘运祥) 那个帖子里的 URL 中的程序是完全可以 读 NT 各种日志的. 你试 成功了吗? http://groups.google.com/groups?hl=zh-CN&lr=&ie=UTF8&oe=UTF8&threadm=7o0kjq%24ftm%241%40news3.infoave.net&rnum=2&prev=/groups%3Fhl%3Dzh-CN%26ie%3DUTF8%26oe%3DUTF8%26q%3DOpenEventLog%2Bcloseeventlog%2Breadeventlog%2Bvb%26sa%3DN%26tab%3Dwg%26lr%3D使用ReadEventLog读取事件日志http://sunh.hosp.ncku.edu.tw/~cww/html/q00113.html使用GetNumberOfEventLogRecords获得事件日志条数http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/eventlog_2u93.asp微软c++的例子 病毒原理是什么? 节日快乐 高难问题,不知道有没有人会? 抓取网页数据的问题 VB已二进制格式打开文件 我想要一个程序(TORNADO) 关于数据库的问题。在线求教。 asp中的sql看不懂,哪位大哥帮帮我,帮我解释一下,本人刚开始学,说的详细点谢谢 一个DTpicker控件可以同时显示yyyymmdd hhmmss吗? 稀奇古怪的问题,请大家帮忙 如何使程序随着 [记事本] 的启动 而启动![进来讨论都有分] 代问个非常非常简单的问题 (顺便送点分): 谁有 WIN98 第一版的序列号
写入日志:
byte[] myByte=new byte[10];
for(int i=0;i<10;i++)
{
myByte[i]= (byte)(i % 2);
}
// Write an informational entry to the event log.
EventLog.WriteEntry("SecondSource","Writing warning to event log.",
EventLogEntryType.Error,123,1 ,myByte);
读取日志:
EventLog sample=new EventLog();
sample.Log="Application";
EventLogEntryCollection myCollection=sample.Entries;
foreach(EventLogEntry test in myCollection) { Console.WriteLine(test.Message,test.Source,test.EventID); }
使用ReadEventLog读取事件日志http://sunh.hosp.ncku.edu.tw/~cww/html/q00113.html
使用GetNumberOfEventLogRecords获得事件日志条数http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/eventlog_2u93.asp
微软c++的例子