Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results
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/
Hi OSR Experts,
I'm trying to write a driver to prevent CDROM devices (when plugged in) on the OS.
I have started research implement POC of it by writing "Filter driver(?for bus or nobus?)" which implementing "IRP_MJ_PNP" and "IRP_MN_START_DEVICE" and set ACCESS_DENIED for preventing.
I have a few questions:
1. Am I on the right way?
2. Should my filter driver be for bus or nonbus?
3. Any other suggestions
Thanks,
Jake
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! | ||
Writing WDF Drivers | 12 September 2022 | Live, Online |
Internals & Software Drivers | 23 October 2022 | Live, Online |
Kernel Debugging | 14 November 2022 | Live, Online |
Developing Minifilters | 5 December 2022 | Live, Online |
Comments
much simpler.
Mark Roddy
Hi Mark_Roddy,
Thanks for your response.
In the future I would like to give the option for exclusions according to device name/id, so I'm still looking for PNP filter driver solution.
If you really, truly, mean just CDROM type devices, I would probably start by trying an upper filter of CDROM.SYS
And I'd write it using KMDF, not WDM as you are implying.
I'd experiment about which, specific, operations (read? write? specific IOCTLs?) that I block or allow so that I get the exact behavior I seek.
Peter
Peter Viscarola
OSR
@OSRDrivers
Another option is a filesystem filter driver ... there are good examples of these on MSDN like this [ https://docs.microsoft.com/en-us/samples/microsoft/windows-driver-samples/cdfs-file-system-driver/ ], and you can specify the exact type of behaviour you want to block, when you want to block it, for what media, etc. ...