I am trying to implement WPP_TRACING in my Win 32 application. But I could not find "WPP Tracing " option under the “configuration properties” of my *.vcxproj. I am ble to do tracing on my KMDF driver
Here is my trace .h for win 32 app
**************************************************************************
#include <evntrace.h> // For TRACE_LEVEL definitions
#define WPP_CHECK_FOR_NULL_STRING //to prevent exceptions due to NULL strings
#define WPP_CONTROL_GUIDS <br> WPP_DEFINE_CONTROL_GUID(TestmidhunGuid, (28EE579B, CF67, 43b6, 9D19,8930E7AAA131), <br> WPP_DEFINE_BIT(DBG_INIT) /* bit 0 = 0x00000001 / <br> WPP_DEFINE_BIT(DBG_PNP) / bit 1 = 0x00000002 / <br> WPP_DEFINE_BIT(DBG_POWER) / bit 2 = 0x00000004 / <br> WPP_DEFINE_BIT(DBG_WMI) / bit 3 = 0x00000008 / <br> WPP_DEFINE_BIT(DBG_CREATE_CLOSE) / bit 4 = 0x00000010 / <br> WPP_DEFINE_BIT(DBG_IOCTL) / bit 5 = 0x00000020 / <br> WPP_DEFINE_BIT(DBG_WRITE) / bit 6 = 0x00000040 / <br> WPP_DEFINE_BIT(DBG_READ) / bit 7 = 0x00000080 / <br> WPP_DEFINE_BIT(DBG_SDP) / bit 8 = 0x00000100 / <br> WPP_DEFINE_BIT(DBG_CONNECT) / bit 9 = 0x00000200 / <br> WPP_DEFINE_BIT(DBG_UTIL) / bit 9 = 0x00000400 / <br> WPP_DEFINE_BIT(DBG_CONT_READER) / bit 9 = 0x00008000 / <br> / You can have up to 32 defines. If you want more than that,<br>you have to provide another trace control GUID /<br> )
#define WPP_LEVEL_FLAGS_LOGGER(lvl,flags) WPP_LEVEL_LOGGER(flags)
#define WPP_LEVEL_FLAGS_ENABLED(lvl, flags) (WPP_LEVEL_ENABLED(flags) && WPP_CONTROL(WPP_BIT_ ## flags).Level >= lvl)
//
// This comment block is scanned by the trace preprocessor to define the
// TraceEvents function and conversion for KdPrint. Note the double parentheses for the KdPrint message, for compatiblility with the KdPrint function.
//
// begin_wpp config
// FUNC TraceEvents(LEVEL, FLAGS, MSG, …);
// end_wpp
//
********
I put only one print statement in my application.
TraceEvents(TRACE_LEVEL_ERROR, DBG_INIT, “I am good \n”);
But it gives the following compilation error.
Error 7 error C2065: ‘DBG_INIT’ : undeclared identifier c:\swapwas\swapwas\swapwas.cpp 678 1 SwapWAS
Error 8 error C3861: ‘TraceEvents’: identifier not found c:\swapwas\swapwas\swapwas.cpp 678 1 SwapWAS
9 IntelliSense: identifier “TraceEvents” is undefined c:\SwapWAS\SwapWAS\SwapWAS.cpp 678 2 SwapWAS
10 IntelliSense: identifier “DBG_INIT” is undefined c:\SwapWAS\SwapWAS\SwapWAS.cpp 678 33 SwapWAS
********************************************************************
I have done my research in MSDN , but there is no document helping me to implement WPP TRACING on win 32 application. (all documents are related to KMDF and UMDF drivers where we can find WPP Tracing option in *.vcxproj files)
Questions
1. Is it possible to implement WPP tracing on win 32 application?
2. I need to capture logs when my tablet goes to connected stand by. Is it possible using tracelog.exe or traceview?
I request you to help me on this
THANKS
MIDHUN.K</evntrace.h>