我正在开发一个需要频繁检查Windows事件日志以确定某个事件的项目。我想知道: Is there a way to create a subscription of the Windows Event Log for certain event?
所以,当事件发生(即事件id = 00001),我可以得到通知在代码asap?我正在使用C#。如果这不能完成,那么我将不得不继续搜索不高效的事件日
我想读一个存档的Windows事件日志文件(.evtx),就像在这个例子中为Windows事件日志消息的模板: using System;
using System.Diagnostics.Eventing.Reader;
public static class Program {
static void Main(string[] args) {
using (var