MS sample drivers don't install

Michael Keller 1 Reputation point
2022-08-16T13:48:30.113+00:00

My PC is a i5 x64, Windows 10 device. I tried to install the passthrough sample of the WDK driver samples collection 2022. I installed VS 2022, SDK and WDK only recently. I opened the passthrough.sln file and the settings in properties were as follows:
x64, Debug, KMDMWindows10, Driver; Build only, (no external target PC)
After commenting out the lines which produced many errors in wdm.h, ntifs.h, and ntddk.h and after editing the .inf file (ntamd64 decorations) I eventually got a passthrough.sys and even a passthrough.cat file.
I tried to install this driver package using the Device Manager. (I have installed my own unsigned drivers by the same method many times in the past and, until recently, that always worked fine, the drivers were installed and also worked.)
This time I got an unexpected error while installing the passthrough.inf: The folder you specified doesn't contain a compatible software driver for your device. ... Make sure it works with x64-based systems.
After verifying and correcting my own .inf file by infverif.exe (INF IS VALID) it threw exactly the same error message. I have absolutely no clue why.
pnputil installs both drivers (added driver packages: 1), but I havn't found them in the Device Manager. pnputil /enum-devices also doesn't show them. They don't work either.
I am at my wits end. Is it a wrong error message? Can anyone help me?

Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,643 questions
0 comments No comments
{count} votes

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.