none
what is issue with Windows software trace preprocessor (WPP), Trace Message Header (TMH) and Event Tracing for Windows (ETW) RRS feed

  • Question

  • Hello Everyone,

    As I'm new to this windows device driver. I was testing

    "Write a KMDF Driver based on a template" as per from msdn link http://msdn.microsoft.com/en-in/library/windows/hardware/hh439654(v=vs.85).aspx

    But after copy paste and build; VS output windows is showing this

    1>------ Rebuild All started: Project: KmdfHelloWorld, Configuration: Win7 Debug Win32 ------
    1>  Stamping Win7Debug\KmdfHelloWorld.inf [Version] section with DriverVer=04/29/2013,11.54.22.853
    1>  Device.c
    1>  Driver.c
    1>  Queue.c
    1>  Generating Code...
    1>  KmdfHelloWorld.vcxproj -> C:\KmdfHelloWorld\Win7Debug\KmdfHelloWorld.sys
    1>  Done Adding Additional Store
    1>  Successfully signed: C:\KmdfHelloWorld\Win7Debug\KmdfHelloWorld.sys
    1>  
    2>------ Rebuild All started: Project: KmdfHelloWorld Package, Configuration: Win7 Debug Win32 ------
    2>  ......................
    2>  Signability test complete.
    2>  
    2>  Errors:
    2>  None
    2>  
    2>  Warnings:
    2>  None
    2>  
    2>  Catalog generation complete.
    2>  C:\KmdfHelloWorld\Win7Debug\KmdfHelloWorld Package\kmdfhelloworld.cat
    2>  Done Adding Additional Store
    2>  Successfully signed: C:\KmdfHelloWorld\Win7Debug\KmdfHelloWorld Package\kmdfhelloworld.cat
    2>  
    ========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========

    And at the same time when going to "Error list" window of VS, it is showing this

    1 IntelliSense: identifier "WPP_CALL_Driver_c69" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 69 5 KmdfHelloWorld
    2 IntelliSense: identifier "TRACE_DRIVER" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 69 42 KmdfHelloWorld
    3 IntelliSense: identifier "WPP_CALL_Driver_c90" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 90 9 KmdfHelloWorld
    4 IntelliSense: identifier "WPP_CALL_Driver_c95" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 95 5 KmdfHelloWorld
    5 IntelliSense: identifier "WPP_CALL_Driver_c130" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 130 5 KmdfHelloWorld
    6 IntelliSense: identifier "TRACE_DRIVER" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 130 42 KmdfHelloWorld
    7 IntelliSense: identifier "WPP_CALL_Driver_c134" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 134 5 KmdfHelloWorld
    8 IntelliSense: identifier "WPP_CALL_Driver_c162" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 162 5 KmdfHelloWorld
    9 IntelliSense: identifier "TRACE_DRIVER" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 162 42 KmdfHelloWorld
    10 IntelliSense: argument of type "WDFOBJECT" is incompatible with parameter of type "WDFDRIVER" c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 167 5 KmdfHelloWorld

    Kindly help me to understand the issue.

    Mat

    Monday, April 29, 2013 6:59 AM

Answers

  • IntelliSense doesn't understand wpp, you can safely ignore these errors and use the output of the real build/compilation to know the compiling state of the code

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.


    Monday, April 29, 2013 7:15 AM
  • Thanks you Mr. Doron,

    Now another one more issue, yesterday I already build "Write a very small KMDF driver"successfully again from msdn web http://msdn.microsoft.com/en-us/library/windows/hardware/hh439665(v=vs.85).aspx

    but today giving error.


    Error 1 error : No such host is known C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms\Win32\ImportAfter\DriverDeployment8.0.targets 69 9 KmdfSmall Package

    I don't know the issue . Please provide me your help.

    Regards

    Matt

    • Marked as answer by Beginner15 Saturday, May 4, 2013 10:17 AM
    Monday, April 29, 2013 7:39 AM
  • Hello Mr. Doron Sir,

    I safely ignored but now it is showing these much error in my debug

    Error 1 error C4013: 'WPP_CALL_Driver_c66' undefined; assuming extern returning int C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 66 1 KmdfHelloWorld
    Error 2 error C2065: 'TRACE_DRIVER' : undeclared identifier C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 66 1 KmdfHelloWorld
    Error 3 error C4013: 'WPP_CALL_Driver_c87' undefined; assuming extern returning int C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 87 1 KmdfHelloWorld
    Error 4 error C2065: 'TRACE_DRIVER' : undeclared identifier C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 87 1 KmdfHelloWorld
    Error 5 error C4013: 'WPP_CALL_Driver_c92' undefined; assuming extern returning int C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 92 1 KmdfHelloWorld
    Error 6 error C2065: 'TRACE_DRIVER' : undeclared identifier C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 92 1 KmdfHelloWorld
    Error 7 error C4013: 'WPP_CALL_Driver_c127' undefined; assuming extern returning int C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 127 1 KmdfHelloWorld
    Error 8 error C2065: 'TRACE_DRIVER' : undeclared identifier C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 127 1 KmdfHelloWorld
    Error 9 error C4013: 'WPP_CALL_Driver_c131' undefined; assuming extern returning int C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 131 1 KmdfHelloWorld
    Error 10 error C2065: 'TRACE_DRIVER' : undeclared identifier C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 131 1 KmdfHelloWorld
    Error 11 error C4013: 'WPP_CALL_Driver_c159' undefined; assuming extern returning int C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 159 1 KmdfHelloWorld
    Error 12 error C2065: 'TRACE_DRIVER' : undeclared identifier C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 159 1 KmdfHelloWorld
    Error 13 error MSB3030: Could not copy the file "C:\KmdfHelloWorld\Win7Debug\KmdfHelloWorld.sys" because it was not found. C:\Program Files\Windows Kits\8.0\build\WindowsDriver8.0.common.targets 1347 5 KmdfHelloWorld Package
    14 IntelliSense: identifier "WPP_CALL_Driver_c66" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 66 5 KmdfHelloWorld
    15 IntelliSense: identifier "TRACE_DRIVER" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 66 42 KmdfHelloWorld
    16 IntelliSense: identifier "WPP_CALL_Driver_c87" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 87 9 KmdfHelloWorld
    17 IntelliSense: identifier "WPP_CALL_Driver_c92" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 92 5 KmdfHelloWorld
    18 IntelliSense: identifier "WPP_CALL_Driver_c127" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 127 5 KmdfHelloWorld
    19 IntelliSense: identifier "TRACE_DRIVER" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 127 42 KmdfHelloWorld
    20 IntelliSense: identifier "WPP_CALL_Driver_c131" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 131 5 KmdfHelloWorld
    21 IntelliSense: identifier "WPP_CALL_Driver_c159" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 159 5 KmdfHelloWorld
    22 IntelliSense: identifier "TRACE_DRIVER" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 159 42 KmdfHelloWorld
    23 IntelliSense: argument of type "WDFOBJECT" is incompatible with parameter of type "WDFDRIVER" c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 164 5 KmdfHelloWorld

    Please let me know the exact location where I do need to change on google it is difficult to get answer

    Thank you

    Matt

    • Marked as answer by Beginner15 Saturday, May 4, 2013 10:17 AM
    Tuesday, April 30, 2013 12:40 AM

All replies

  • IntelliSense doesn't understand wpp, you can safely ignore these errors and use the output of the real build/compilation to know the compiling state of the code

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.


    Monday, April 29, 2013 7:15 AM
  • Thanks you Mr. Doron,

    Now another one more issue, yesterday I already build "Write a very small KMDF driver"successfully again from msdn web http://msdn.microsoft.com/en-us/library/windows/hardware/hh439665(v=vs.85).aspx

    but today giving error.


    Error 1 error : No such host is known C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms\Win32\ImportAfter\DriverDeployment8.0.targets 69 9 KmdfSmall Package

    I don't know the issue . Please provide me your help.

    Regards

    Matt

    • Marked as answer by Beginner15 Saturday, May 4, 2013 10:17 AM
    Monday, April 29, 2013 7:39 AM
  • Hello Mr. Doron Sir,

    I safely ignored but now it is showing these much error in my debug

    Error 1 error C4013: 'WPP_CALL_Driver_c66' undefined; assuming extern returning int C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 66 1 KmdfHelloWorld
    Error 2 error C2065: 'TRACE_DRIVER' : undeclared identifier C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 66 1 KmdfHelloWorld
    Error 3 error C4013: 'WPP_CALL_Driver_c87' undefined; assuming extern returning int C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 87 1 KmdfHelloWorld
    Error 4 error C2065: 'TRACE_DRIVER' : undeclared identifier C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 87 1 KmdfHelloWorld
    Error 5 error C4013: 'WPP_CALL_Driver_c92' undefined; assuming extern returning int C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 92 1 KmdfHelloWorld
    Error 6 error C2065: 'TRACE_DRIVER' : undeclared identifier C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 92 1 KmdfHelloWorld
    Error 7 error C4013: 'WPP_CALL_Driver_c127' undefined; assuming extern returning int C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 127 1 KmdfHelloWorld
    Error 8 error C2065: 'TRACE_DRIVER' : undeclared identifier C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 127 1 KmdfHelloWorld
    Error 9 error C4013: 'WPP_CALL_Driver_c131' undefined; assuming extern returning int C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 131 1 KmdfHelloWorld
    Error 10 error C2065: 'TRACE_DRIVER' : undeclared identifier C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 131 1 KmdfHelloWorld
    Error 11 error C4013: 'WPP_CALL_Driver_c159' undefined; assuming extern returning int C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 159 1 KmdfHelloWorld
    Error 12 error C2065: 'TRACE_DRIVER' : undeclared identifier C:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 159 1 KmdfHelloWorld
    Error 13 error MSB3030: Could not copy the file "C:\KmdfHelloWorld\Win7Debug\KmdfHelloWorld.sys" because it was not found. C:\Program Files\Windows Kits\8.0\build\WindowsDriver8.0.common.targets 1347 5 KmdfHelloWorld Package
    14 IntelliSense: identifier "WPP_CALL_Driver_c66" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 66 5 KmdfHelloWorld
    15 IntelliSense: identifier "TRACE_DRIVER" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 66 42 KmdfHelloWorld
    16 IntelliSense: identifier "WPP_CALL_Driver_c87" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 87 9 KmdfHelloWorld
    17 IntelliSense: identifier "WPP_CALL_Driver_c92" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 92 5 KmdfHelloWorld
    18 IntelliSense: identifier "WPP_CALL_Driver_c127" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 127 5 KmdfHelloWorld
    19 IntelliSense: identifier "TRACE_DRIVER" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 127 42 KmdfHelloWorld
    20 IntelliSense: identifier "WPP_CALL_Driver_c131" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 131 5 KmdfHelloWorld
    21 IntelliSense: identifier "WPP_CALL_Driver_c159" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 159 5 KmdfHelloWorld
    22 IntelliSense: identifier "TRACE_DRIVER" is undefined c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 159 42 KmdfHelloWorld
    23 IntelliSense: argument of type "WDFOBJECT" is incompatible with parameter of type "WDFDRIVER" c:\KmdfHelloWorld\KmdfHelloWorld\Driver.c 164 5 KmdfHelloWorld

    Please let me know the exact location where I do need to change on google it is difficult to get answer

    Thank you

    Matt

    • Marked as answer by Beginner15 Saturday, May 4, 2013 10:17 AM
    Tuesday, April 30, 2013 12:40 AM