none
How to successfully run a sample driver (Example: Minifilter Driver) RRS feed

  • Question

  • Hey there,

    I am writing a minifilter driver based on this microsoft sample:

    https://github.com/Microsoft/Windows-driver-samples/tree/master/filesys/miniFilter/minispy

    After I have opened the project in Visual Studio 2016 and after setting up the solution's configurations
    for x64 and the Driver Install -> Deployment to Install/Reinstall and Verify
    I try to debug the project. Unfortunately I get an error message that says "An error occured while removing previous driver installations".

    What can we do ?

    Monday, October 24, 2016 12:23 PM

All replies

  • First try rebooting the test system, and see if the problem goes away.   If that does not work, look at System Restore and see if you can rollback the system to uninstall the test driver.  

    While it keeps getting better, most experienced driver writers don't use the Visual Studio deployment capabilities, since it has had so many problems since it was introduced.   Installing a driver manually for an initial test, and then using WinDBG and .kdfiles to replace the code for later testing is the way most of us work.


    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

    Wednesday, October 26, 2016 1:04 PM
  • Team:

    Has anyone got the minispy filter to actually work?  With instructions?

    Thank you,

    Robert.

    Tuesday, April 4, 2017 12:21 AM
  • I've used minispy as the basis of a number of commercial filters.  Just install it with the INF file.   Using Visual Studio to install a driver, is at best an arcane ritual such that you feel you are sacrificing the goat at Midnight while correctly pronouncing the chant.


    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

    Tuesday, April 4, 2017 12:35 AM