I am having a trouble in making a tmh file. I know how to use it in a source
file but I wanted to try it with "TraceWpp.exe". So tried as below and the
result was
>TraceWpp
>ample.c -km -dll -ctl:c23a0c5a-d307-4f0e-ae8e-b2A355AD5DAB -func:KdPrint((MSG,...))
> -gen:{km-WdfDefault.tpl}*.tmh
Result>1>cl wpp
1>wpp : error : (FindFileOnPath)File defaultwpp.ini not found
So I copied it from \WINDDK\6000\bin\wppconfig\rev1 in the same folder and
tried with other missing files such as defaultwpp.ini, header.tpl,
km-WdfDefault.tpl and km-default.tpl and compilation was OK. After that when
I compile the source file, then it shows me this.
>sample.c(62) : error C4013: 'WPP_INIT_TRACING' undefined; assuming extern
>returning int
>sample.c(92) : error C4013: 'WPP_CLEANUP' undefined; assuming extern
>returning int
Is i the problem of path? or something else? Then why don't I have a same
problem when I add this in the source file like
SOURCES=sample.c
RUN_WPP= $(SOURCES) \
-km \
-ctl:c23a0c5a-d307-4f0e-ae8e-b2A355AD5DAB \
-func:KdPrint((MSG,...)) \
-gen:{km-WdfDefault.tpl}*.tmh
Thank you.