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/
I am trying to use FltGetFileNameInformation in my post create callback function from my mini filter driver to get the file name. I tried with the below 2 flag combinations
1.FLT_FILE_NAME_NORMALIZED | FLT_FILE_NAME_QUERY_DEFAULT.
2. FLT_FILE_NAME_OPENED | FLT_FILE_NAME_QUERY_DEFAULT
Error code : STATUS_INVALID_DEVICE_REQUEST when I use "FLT_FILE_NAME_OPENED | FLT_FILE_NAME_QUERY_DEFAULT"
This post create function gets called when I try to do "Save as" on a network file. Due to this error I couldn't do a "save As". Error pops up and when I click the save button again it gets saved. when I looked into my driver logs I could see during the first save it failed it post create FltGetFileNameInformation function. The second save did not call post create callback. To see the behaviour I tried doing the same with procmon enabled. surprisingly I did not get any errors. when procmon is running I could successfully save the changes to the network file.
I am thinking if there are any other APIs or should we use any other flags to get the filename.
Any thoughts on this?
|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 January 2023||Live, Online|
|Developing Minifilters||20 March 2023||Live, Online|
|Internals & Software Drivers||17 April 2023||Live, Online|
|Writing WDF Drivers||22 May 2023||Live, Online|