RE: Cannot open include file:windows.h. when following OSR recent WPP bologpost

Thanks, Gabriel. The same error with “Trace Kernel mode components” enabled… (Wdk 8.1)

The TMH files are generated based on TPL files that can be found in
C:\Program Files (x86)\Windows Kits\10\bin\WppConfig\Rev1. You’re clearly
picking up the user mode template (um-default.tpl) when you need the kernel
mode one (km-default.tpl).

Changing the project property should have done the trick to fix this
problem. Make sure this is properly reflected in your vcxproj, you should
have this:

true

And be sure to do a clean build, you need the TMH files to get regenerated.

-scott
OSR
@OSRDrivers

wrote in message news:xxxxx@ntdev…

Thanks, Gabriel. The same error with “Trace Kernel mode components”
enabled… (Wdk 8.1)

Thank you! “Trace Kernel mode components” + clean helped.
(I think it would be help helpfull for other new guys in WPP to add row about “Trace Kernel mode components option should be set Yes” in the blogpost).