2013-05-29 24 views
1

我有一個C/C++應用程序,我想使用基於清單的ETW解決方案。我在使用打開生成的* .etl的工具時遇到問題(如Windows或其他默認工具),因爲我無法看到我的事件的具體詳細信息(清單中定義的模板)WIndows - 基於清單的ETW提供程序問題

如何註冊向系統顯示並將其指定給衆所周知的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 

任何想法?

回答

4

問題與這樣的事實有關,在清單中它指定了一個提供者messageFileName,它與實際二進制文件的位置不同,後者包含ETW使用者需要的資源(字符串)(例如事件日誌或其他工具)。

此外,當期望在事件查看器中看到日誌時,請確保在事件查看器中啓用Analytics或Debug Channel類型的提供程序。