WPP - DoTraceLevelMessage inside a Macro

Hi,
As we all know WPP doesn’t expand macros like this one

#define PRINTETLLOGS(LEVEL,FLAGS,MSG) DoTraceLevelMessage(LEVEL,FLAGS,MSG)

as WPP runs before C Preprocessor macros.

There is article in MSDN to how to achive this
https://msdn.microsoft.com/en-us/library/windows/hardware/ff546737(v=vs.85).aspx

But i can’t figure how to use this.

What i need to add in my tracing header file for achieving above macro i.e. i can call PRINTETLLOGS from my code.

you put them in your trace.

here is example for a Macro that print Start of Function

// begin_wpp config
// MyStartFunc();
// USEPREFIX(MyStartFunc, “%!STDPREFIX!”);
// USESUFFIX(MyStartFunc, “++ %!FUNC!\n”);
// end_wpp