none
Insert .tmh file for WPP tracing RRS feed

  • Question

  • Hello everybody.

    I inserted driver.tmh into my project. but when I rebuild, it get a error and I don't know why. I tried but can't fix it.Can't I help you ? thank you so much.

    This is image file:

    https://drive.google.com/file/d/1B4wtQ0nqJW8F74aBnyUjz8YQm5U4mj5G/view?usp=sharing


    • Edited by kubozzz Sunday, May 6, 2018 9:52 AM
    Sunday, May 6, 2018 2:50 AM

Answers

  • You have some typo in your WPP_DEFINE_CONTROL_GUID . (Parenthesis).
    https://msdn.microsoft.com/library/windows/hardware/ff556186

    With kind regards



    Sunday, May 6, 2018 7:39 PM

All replies

  • We don't know too. Please show us the whole build log (the Output pane) including the 1st error message.

    -- pa

    Sunday, May 6, 2018 1:06 PM
  • Thanks you reply.

    I am developmenting driver for monitor registry operations basing on Registry Filter of Windows-driver-samples.

    My driver uses WPP tracing for logging . I know before using the WPP tracing , declaration of GUID for WPP is request.

    // Software Tracing Definitions
    // {7B223637-1634-48E6-ADC9-907185AB9F18}
    #define WPP_CONTROL_GUIDS \
    	WPP_DEFINE_CONTROL_GUID(Regfltr,7b223637,1634,48e6,adc9,907185ab9f18),  \
    	WPP_DEFINE_BIT(TRACE_INFO) 

    After that, I inlucde  #include "driver.tmh"

    I get the WPP tracing initiates when driver is loaded, I using WPP_INIT_TRACING.

    WPP_INIT_TRACING(DriverObject, RegistryPath);

    I enabled Wpp tracing in Configuration Properties with command line 

    -noshrieks -km -odir:"Debug\" -cfgdir:"C:\Program Files (x86)\Windows Kits\10\bin\wppconfig\rev1" 

    However ,It's get a error 

    Error (active)		identifier "WPP_MAIN_CB" is undefined	regfltr	d:\registry\regfltr\sys\driver.c	197	
    Error (active)		declaration is incompatible with "int DetectOSVersion()" (declared at line 239)	regfltr	d:\registry\regfltr\sys\driver.c	70	
    Error (active)		declaration is incompatible with "void __stdcall RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)" (declared at line 11353 of "c:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km\wdm.h")	regfltr	d:\registry\regfltr\sys\driver.c	219	
    Error (active)		declaration is incompatible with "void ExInitializeFastMutex(PFAST_MUTEX FastMutex)" (declared at line 21953 of "c:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km\wdm.h")	regfltr	d:\registry\regfltr\sys\driver.c	257	
    

    This is picture describe other error:

    https://drive.google.com/file/d/1Jai6h6wN3AAXWVpwnRUufzLPQZwRJlSU/view?usp=sharing

    Sunday, May 6, 2018 1:48 PM
  • You have some typo in your WPP_DEFINE_CONTROL_GUID . (Parenthesis).
    https://msdn.microsoft.com/library/windows/hardware/ff556186

    With kind regards



    Sunday, May 6, 2018 7:39 PM
  • I didn't see it, It made I lose a few hours, thanks you.
    Monday, May 7, 2018 12:44 AM