Windows Driver Kit fails to install integration with Visual Studio, no .sys file generated

Nir Harel 5 Reputation points
2024-11-30T09:52:57.0133333+00:00

Hey,

I'm trying to create an NDIS lightweight filter driver. I'm having problems setting up my environment correctly. I tried a few templates - ndislwf, kmdf basic, kmdf empty, and wdm. I always get the same symptoms:

  1. The include paths are not set up correctly to include the km directory.
  2. The _AMD64_ preprocessor define is not defined.
  3. The property pages required for driver development, like Inf2Cat and Driver Signing are missing.

The first two issues were easily handled, but it looks like the third issue prevents sys files from being generated, despite .obj files being present in the same directory.

Despite these issues, it looks like the Visual Studio extension was installed correctly:

  1. The templates for kernel projects (like the ones I mentioned above) exist
  2. The platform toolset is set up for WindowsKernelModeDriver10.0
  3. The WDK extension of the correct version can be seen in Help --> About.

I also tried uninstalling everything, repairing my Visual Studio installation, and reinstalling everything while being careful to follow the steps precisely, restarting after each step. Afterwards I created fresh projects, and the problem persists.

All software versions are latest:

  • Windows - 26100.2454
  • Visual Studio 2022 Community - 17.12.2 (with no other VS versions installed)
  • Windows SDK - 10.0.26100.1742
  • Windows Driver Kit - 10.0.26100.2454 (this also happened with the previous version)

These are my installed Visual Studio components:

User's image

Thanks :)

Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
137 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Paul Eze 0 Reputation points Microsoft Employee
    2024-12-11T03:15:05.2066667+00:00

    Looks like your environment is correctly set up. Can you share the detailed error log here

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.