Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

Simple lower filter question

NtDev_GeekNtDev_Geek Member - All Emails Posts: 118

I've modified gen filter to lower filter and installed it successfully but as I can see there is no uninstall section in inf file?? so after installation, if I want to uninstall the driver, delete the inf, delete the driver file what shall I add in inf file.? I know for you guru's this question may looks simple but I am confused here so please help.

Thank you.

Comments

  • Tim_RobertsTim_Roberts Member - All Emails Posts: 14,109

    If you're talking about a PnP lower filter, then the INF isn't a normal INF, and won't be copied to C:\Windows\Inf. "Uninstall" means removing the LowerFilters value from the registry, and deleting the SYS file and, optionally, removing the Services entry.

    If you're talking about a file system filter, then ignore all that, because I know nothing.

    Tim Roberts, [email protected]
    Providenza & Boekelheide, Inc.

  • NtDev_GeekNtDev_Geek Member - All Emails Posts: 118

    Thank you Tim for the reply.

    One this is clear to me that if I want to uninstall a driver, need to delete the key and driver file.

    Now please shed some light on the difference between PnP upper/lower filter and Non-PnP upper/Lower filter(s). when to go for PnP filter(s) and what cautions we may have when developing them. how to differentiate bw these two (DefaultInstall section or ?)

    Thank you again in advance.

  • Tim_RobertsTim_Roberts Member - All Emails Posts: 14,109

    There is no such thing as a "non-PnP upper/lower filter". The whole upper/lower filter concept is a PnP concept. To take your device out of operation, all you have to do is remove the LowerFilters registry key and restart the device. Everything else is just cleaning up the file system which is not that important.

    Tim Roberts, [email protected]
    Providenza & Boekelheide, Inc.

  • NtDev_GeekNtDev_Geek Member - All Emails Posts: 118

    Thank you!!!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Internals & Software Drivers 15 November 2021 Live, Online
Writing WDF Drivers 24 January 2022 Live, Online
Developing Minifilters 7 February 2022 Live, Online
Kernel Debugging 21 March 2022 Live, Online