PopStevo
April 8th, 2007, 10:48 AM
Hello to everybody!
I'm writing this driver which has to filter (monitor) every access to a computer's filesystem. Absolutely *everything* works fine except the part where I have to get the name of the file in the IRP stack location.
I run the driver and everything works. THEN I add a call to IoQueryFileDosDeviceName to the dispatch routine and run the driver again. This time the NTFS driver crashes (a pool was free twice). I simply don't understand what's wrong... PLUS I'm kinda 95% sure it's the IoQueryFileDosDeviceName that's the culprit (because the rest is just your standard code just like WDK recommends it)
Thanks a lot for reading, even more for helping!
I'm writing this driver which has to filter (monitor) every access to a computer's filesystem. Absolutely *everything* works fine except the part where I have to get the name of the file in the IRP stack location.
I run the driver and everything works. THEN I add a call to IoQueryFileDosDeviceName to the dispatch routine and run the driver again. This time the NTFS driver crashes (a pool was free twice). I simply don't understand what's wrong... PLUS I'm kinda 95% sure it's the IoQueryFileDosDeviceName that's the culprit (because the rest is just your standard code just like WDK recommends it)
Thanks a lot for reading, even more for helping!