基于WIndows - manifest的ETW提供程序问题

WIndows - manifest based ETW provider issue

本文关键字:程序 问题 ETW WIndows manifest 基于      更新时间:2023-10-16

我有一个C/c++应用程序,我想使用基于清单的ETW解决方案。当使用打开生成的*的工具时,我有问题。我不能看到我的事件(在manifest中定义的模板)的具体细节

我如何将清单注册到系统并将其指定给众所周知的ETW消费者工具以显示该信息?

我做了http://www.codeproject.com/Articles/570690/Application-Analysis-with-Event-Tracing-for-Window

中提到的事情
mc FirstETW.man //included generated *.rc in project
mc -um FirstETW.man //to generate C files that I've used in the ETW provider executable
rc FirstETW.rc // not sure of this .Already included the generated *.rc script from previous step in the visual studio project

还注册了舱单:

wevtutil.exe im FirstETW.man  //installs the provider

有什么想法吗?

该问题与在清单中指定的提供者messageFileName与包含ETW消费者(例如事件日志或其他工具)所需的资源(字符串)的实际二进制文件的位置不同有关。

当期望在事件查看器中看到日志时,请确保在事件查看器中启用分析或调试通道类型的提供程序。