Cannot open include file: 'ntddk.h'

前端 未结 6 2177
隐瞒了意图╮
隐瞒了意图╮ 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

    I also faced the similar problem. Below worked for me:

    Step 1: Aware of Targeted Windows Platform for which you are going to develop driver. You can check 'Windows Version' on your system by looking at Settings->System->About->Windows Specification

    Step 2: Make sure you install compatible "Windows SDK" and "WinSDK" matchingto targeted windows platform version.

    • For Windows 10, version 1903 follow https://docs.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk
    • For Previous Platforms follow https://docs.microsoft.com/en-us/windows-hardware/drivers/other-wdk-downloads

    Step 3: Verify "ntddk.h" exists at $(DDK_INC_PATH). This pre-processor macro typically evaluates to "C:\Program Files (x86)\Windows Kits\10\Include\\km". If you do not see 'km' folder then carefully follow the links mentioned in step 2 above.

    Step 4: Verify Project Properties -> Configuration Properties -> General -> Platform Toolset is using "WindowsKernelModeDriver" .

提交回复
热议问题