cannot open source file "excpt.h"

i am trying to compile old WDM driver using KMDF driver template in Visual studio 2015
driver write for WinDDK 7600.16385.1 and compile on it with no problem
but i want to compile it in Driver Kit version 10
i include C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km folder in project’s Additional Include Directories but i get below error

Severity Code Description Project File Line Suppression State
Error C1083 Cannot open include file: ‘excpt.h’: No such file or directory ProcessPathFinderDriver C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km\wdm.h 56

xxxxx@gmail.com wrote:

i am trying to compile old WDM driver using KMDF driver template in Visual studio 2015
driver write for WinDDK 7600.16385.1 and compile on it with no problem
but i want to compile it in Driver Kit version 10
i include C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km folder in project’s Additional Include Directories but i get below error

You should not need to do that.  The template will add the necessary
include folders to the project.  Besides, that file is in km\crt, not in km.

When you changed the include directories, did you do it through the IDE,
or by editing the project file?  When editing the project file, you have
to remember to include the old directories, like this:

     
%(AdditionalIncludeDirectories);$(DDK_INC_PATH);…/Include

If you do this, you wipe out whatever include directories were there
previously:

     
$(DDK_INC_PATH);…/Include

Severity Code Description Project File Line Suppression State
Error C1083 Cannot open include file: ‘excpt.h’: No such file or directory ProcessPathFinderDriver C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km\wdm.h 56

At the moment, I’m a little confused about why this works for me.  If I
look at the tlog file to check the “cl” command, it is only including
“km”, but if I do a /P to generate the preprocessor output, it is
finding the file in km\crt.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.