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/
Hello. So we have a PCI device that supports PNP, so the user will insert/eject the device many times during the running session of the OS.
So I've been testing with root bus toaster, what's recommended for the driver associated with this HWID, to be a functional driver right, or one of the filter drivers in the samples? Due to 3rd party nature of the service which will need to be associated with the INF. Another part of the requirement, will be to completely stop/cleanup the service on device removal. Such that when the device is re-plugged in, the service can start as a fresh, so to do this, I assume the driver also needs to be fully unloaded as well right, for the INF to start the service again on device insertion?
I might be doing something silly, but using the MS driver toaster sample "featured2" functional driver, I never see the IRP_MN_SURPRISE_REMOVAL or the IRP_MN_REMOVE_DEVICE, is it supposed to? Once I use the enum.exe -u commands, the output looks like below. The setup is loading the "dynambus" as the rootbus, then using "featured2" as the device that will be associated with the real HWID.
// enum.exe -p 1234 ... IRP_MN_??? Unknown *** IopQueryLegacyBusInformation - Driver TestBusDrv returned STATUS_SUCCESS for IRP_MN_QUERY_LEGACY_BUS_INFORMATION, and a NULL POINTER. IRP_MN_QUERY_RESOURCE_REQUIREMENTS IRP_MN_FILTER_RESOURCE_REQUIREMENTS IRP_MN_START_DEVICE [!] BusEnum: PDO IRP_MN_START_DEVICE IRP: 0xFFFF9382CB978530 IRP_MN_QUERY_CAPABILITIES //enum.exe -u 1234 [!] BusEnum: Create [!] BusEnum: UnPlug called [!] BusEnum: Plugging out 1234 // No PNP IRP from the functional driver for removal, but the bus driver sees the event
It looks like you're new here. If you want to get involved, click one of these buttons!
|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!||Kernel Debugging||30 Mar 2020||OSR Seminar Space|
|Developing Minifilters||15 Jun 2020||LIVE ONLINE|
|Writing WDF Drivers||22 June 2020||LIVE ONLINE|
|Internals & Software Drivers||28 Sept 2020||Dulles, VA|