Search code examples
driverwindows-wpp

Unresolved external symbol WppAutoLogTrace when building a driver with Dmf Framework


I'm trying to build a driver with Microsoft Dmf Framework https://github.com/microsoft/DMF

I builded Dmf from the provided sln file in this repository. It results in DmfK.lib (I build a kernel mode driver), then I add this lib to my driver project.

But I have 27 times the same linker error "unresolved external symbol WppAutoLogTrace" from different functions of this lib, ie:

Error   LNK2019 unresolved external symbol WppAutoLogTrace referenced in function "long __cdecl HashTable_ContextInitialize(struct DMFMODULE__ *)" (?HashTable_ContextInitialize@@YAJPEAUDMFMODULE__@@@Z)   Main (Main\Main)    C:\Data\Development\MyDriver\Source\Main\DmfK.lib(Dmf_HashTable.obj)

I found no relevant information about this function over the internet, I can't figure out which other lib to include. Is this a problem with a missing lib or an issue with the DmfK.lib build ?


Solution

  • I finally found the solution:

    WppAutoLogTrace is implemented in WppRecorder.lib