windowsinstallationkmdffilter-driver

How to install KMDF Filter Driver from WDK 8.1 Toaster Sample Driver?


I'm learning Windows driver development by examining the WDK 8.1 Toaster Sample Driver. I can build, install, debug, and communicate with the KMDF Bus, and KMDF Function Driver. The problem I have is installing the KMDF Filter Driver. I tried using devcon to install the filter driver, but it always fail. Any help would be appreciated.

Host system:

Target system (virtual machine):


Solution

  • I found the answer on OSR website:

    Apparently, the installation procedure for a KMDF Filter driver is different than other KMDF drivers. See installation procedure below:

    1. Move the "filter.sys" file to Windows drivers directory (C:\Windows\System32\drivers).
    2. Create a service for the driver using the path above as your binpath. I used demand as my start type.
    3. Add an UpperFilter multi-string value to the TOASTER class registry, and add the service created in step 2 to the UpperFilter.
    4. Restart the TOASTER device.