I back to develop using WDK, I had some issues configuring my environment and to help others to avoid the same error that I had, I’m describing here the correct procedure. The basic steps are summarized below:
- Install Visual Studio Community
- Install Windows Driver Kit 10.0
- Install Windows Driver Kit Samples (Extra)
- Test installation
Install Visual Studio Community
Previous versions of WDK didn’t work with Visual Studio, but since Windows 8. Microsoft worked to integrated WDK to Visual Studio. Fist, we need to get the latest version of Visual Studio Community, the free version of Visual Studio. You can download the here.
After download the web installer, open it and select Visual C++ and Windows 10 SDK.
Install Windows Driver Kit 10.0
Next step is to install Windows Driver Kit. You can download the latest version here. Just like previous installer, indicate the install location that it will automatically download and install the necessary parts.
Install Windows Driver Kit Samples (Extra)
This is an optional step. Microsoft removed the driver samples from the WDK. Now we need to download it a part. All samples are available in Microsoft Github account here.
git clone https://github.com/Microsoft/Windows-driver-samples.git
Open one of the samples and compile it. If everything is fine, it will compile without problems.