如何使用 C++ 读取特定的事件日志条目?

问题描述

如何使用事件 ID 从事件日志中获取特定的事件日志条目

      I have tried ReadEventlog samples but it gets all the event i need to run a while loop to filter.

请让我知道如何使用任何直接方法或使用 C++ 查询来实现它。

     its like Example if we have 3000 events out of that 1000 event has Event id:150 .

我们如何查询它。

我尝试过的代码

        while (ERROR_SUCCESS == status)
{
    if (!ReadEventLog(hEventLog,EVENTLOG_SEQUENTIAL_READ | EVENTLOG_BACKWARDS_READ,pBuffer,dwBytesToRead,&dwBytesRead,&dwMinimumBytesToRead))
    {
          ....
    }
 }

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)