How to build drivers for Windows 8 using WDK for Windows 10?

Hi, everybody!

As far as I could understand, WDK 10 can build drivers for Win7, Win8, Win8.1 and Win10. However, after installing WDK 1809, the only target platform I see from my Visual Studio 2017 is “Windows 10” and I cannot change it. Also, the only Platform Toolset I see is “WindowsKernelModeDriver10.0” and there is no option for earlier versions of Windows on that drop box.

How can I build drivers for Windows 8 using WDK 10? I mean, having NTDDI_VERSION=NTDDI_WIN8 and so on.

Thanks in advance.

In your project properties, change the Target OS Version under Driver Settings… not under “Configuration Properties”

Note that under Driver Settings you can also manually manipulate the _NT_TARGET_VERSION if you want/need. But setting Target OS Version should take care of that for you.

Peter

Many thanks!