Cannot open include file: 'ntddk.h'
You need to add WDK headers path to your vcxproj include directories:
vcxproj properties -> C/C++ -> General -> Additional Include Directories
C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\km\
P.S.: Make sure you install SDK 10 together with WDK 10.
P.P.S: Without SDK you will get Cannot open include file: 'ntdef.h'
error
Solved it by selecting a different "Windows SDK Version" in Visual Studio under Project Properties -> General.
In the directory C:\Program Files (x86)\Windows Kits\10\Include
I have 5 folders with Windows SDKs. The newest (10.0.17763.0) did not have a km
subfolder. After changing the Windows SDK Version from 10.0.17763.0
to 10.0.17134.0
in Visual Studio the ntddk.h
header was found.