Cannot open include file: 'ntddk.h'

前端 未结 6 2226
隐瞒了意图╮
隐瞒了意图╮ 2021-01-04 05:30

I\'m been trying to get into driver development (queue the \"don\'t do that\") I have been looking at this msdn page and after installing the WDK (Windows Driver Kit) 10 I a

6条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-04 05:48

    In case you try to build on a new system, then perhaps first try to retarget the solution to that system

    If this does not work then look for the subfolder KM - mentioned in some of the above explanations and then try to retarget to that version, by changing the $(LatestTargetPlatformVersion)

    Hopefully then you should beable to build with the ntddk.h file NB! Keep in mind that this will force your solution to build to that specific platform and if you try to build on another, then you will have to manually change it again. A better solution would be to make some sort of pre-build step which takes care of missing SDK and installs it, however I do not have such a solution - any one ?

提交回复
热议问题