Enable Wpp for Minifilter Driver

Scoot3r

Member
Joined
Apr 21, 2021
Posts
10
Hi,
I wanna enable wpp tracing for my first minifilter driver,
i do that on normal driver but for minifilter i can't find any sample
how can i enable this feature ?
thank you 🙏
 
Hi again
i finally SOLVED it
but i have another problem
how can use unicode string to wpp tracing?
i mean like this :>
TraceEvents(TRACE_LEVEL_INFORMATION, TRACE_DRIVER, &Data->Iopb->TargetFileObject->FileName); // got error
 
Error wpp Parsing "&Data->Iopb->TargetFileObject->FileName", cannot find format string (i even add %wZ but i'm not sure is correct for some situation)
i trying search for find a sample but :confused:
 
Could you please provide what values you've passed to the fields of the unicode string structure? Is the structure initialised?
 
this is my unicode string &Data->Iopb->TargetFileObject->FileName
this is correct ?
TraceEvents(TRACE_LEVEL_INFORMATION, TRACE_DRIVER, "File Name: %wZ", &Data->Iopb->TargetFileObject->FileName);
 
Back
Top