Modifying the results of IRP_MJ_DIRECTORY_CONTROL

Hi

I was wondering how to modify the output of a DIR command.

The IRP_MJ_DIRECTORY_CONTROL returns a METHOD_OUT_DIRECT buffer.
Unfortunately, I get a bug check when I attempt to use
MmGetSystemAddressFoMdlSafe. I’ve been told on this forum that it’s because
I’m not trapping an exception. Unfortunatley, I can’t find any reference to
exceptions thrown by MmGetSystemAddressForMdlSafe in either of the two books
which I have or on the web.

I’m guessing that the lower level driver calls IoCompleteRequest before it
gets passed back up to me. Is there any way to find out?

Cheers
Sha

InTechnology plc - Secure Offsite Data
Head Office: Nidderdale House, Beckwith Knowle, Harrogate, HG3 1SA.
Main: 01423 850000
Fax: 01423 858855
www.intechnology.co.uk

For a comprehensive list of InTechnology’s supplier accreditations visit
our website accreditation page at
www.intechnology.co.uk/html/reseller/techserv_R/res_accred.asp


This message has been checked for all known viruses by the
CitC Virus Scanning Service powered by SkyLabs. For further information visit
http://www.citc.it