Hello. I am trying to set up a wpp trace for my wdm driver.
Created the file trace.h with the following content:
#pragma once
#define WPP_CONTROL_GUIDS \
WPP_DEFINE_CONTROL_GUID( \
MyDriver, ({6D3DBC4E,AEDB,47C9,82C3,322A83F4B29A}), \
WPP_DEFINE_BIT(DEBUG_ERROR) /* bit 0 = 0x00000001 */ \
WPP_DEFINE_BIT(DEBUG_WARNING) /* bit 1 = 0x00000002 */ \
WPP_DEFINE_BIT(DEBUG_TRACE) /* bit 2 = 0x00000004 */ \
WPP_DEFINE_BIT(DEBUG_INFO) /* bit 3 = 0x00000008 */ \
)
#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)
In the driver.c file, I added the following code:
#include "trace.h"
#include "SwsExchangeBuffer.tmh"
I get errors. Can you tell me what this behavior may be related to?
driver.tmh(376,1): error C2059: syntax error: 'bad suffix on number'
driver.tmh(376,1): error C2153: integer literals must have at least one digit
driver.tmh(376,1): error C2059: syntax error: '{'
driver.tmh(376,1): error C2059: syntax error: ')'
driver.tmh(376,1): error C2059: syntax error: '>>'