Search code examples
visual-studiowdk

Windows Kernel Mode Driver Project Template doesn't appear in Visual Studio Project Template menu after downloading WDK


Recently I've menaged to develop Windows Kernel Mode Driver so I started reading about that. I've read I need to download WDK. I use Visual Studio 2017 Community so I've downloaded WDK (for Windows 10) version 1709 (in default folder if it matters). When I try to create new project there should appear new templates for developing drivers but they don't.

(From what I've read I've deduced I only need to download the WDK and it's enough, am I right? It's described like that on MSDN)

So my question is: what am I supposed to do to the Kernel Mode Driver Project Template appear in Project Templates menu? I've really tried to google my problem and I did research but I haven't found anything usefull. I know it looks like very silly question and I'm so sorry if it does but I really don't know what to do, I tried many things like redownloading the WDK or downloading other version and so on but nothing helped. Any help will be appreciated.


Solution

  • Don't use Visual Studio 2015 and Visual Studio 2017 installed at the same time, I've seen this cause problems. Neither have two versions of WDK installed at the same time if you happened to have done this.

    1. Uninstall all versions of Visual Studio on your machine.
    2. Install Visual Studio 2017.
    3. Install the latest version of Windows Driver Kit (WDK) for Visual Studio 2017.
    4. Try again and see if the template shows up.

    Did the installation of WDK throw any errors last time? Is the folders for WDK present under the Windows Kit area? We sort of need more details if possible, otherwise we'll just be guessing into oblivion for the next 1000 roman years.