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/
Inside Windows driver routine which handles a DeviceIoControl call from client, I'd like to call many other DeviceIoControl routines using the same HANDLE as the client application. The initial DeviceIoControl routine runs only at the passive level in the driver. The calls to the many other DeviceIoControl routines are not restricted to the passive level. I have a working driver for a PCIe device. The initial call allocates memory on the device. The routines called from within the driver would initiate DMA IN to initialize the memory. Today, the allocation routine works and the DMA IN routines work. I've seen ZwDeviceIoControl, but it needs a HANDLE. Unfortunately, inside the driver, I only have the FILE_OBJECT. Is there a way to get a HANDLE from the FILE_OBJECT? It would need to be the same HANDLE or a duplicate HANDLE since the driver and PCIe device enforce memory protection. Only the PCI device's memory that is allocated to the FILE_OBJECT can be written by the DMA IN.
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|