Well, ofcourse you need to handle IRP_MJ_DIRECTORY_CONTROL. Make sure that
you use the *correct* instance since your “other” directory is on a
different volume. Also, if you start from top of the stack on that volume,
there is a possibility that other minifilter that has an altitude > than
your minifilter’s altitude might fudge the results. So, you need to be
careful and use “your” instance for the other volume while issuing
FltQueryDirectoryFile. Moreover, for OS version < Vista, you need to build
your own FltQueryDirectoryFile.
An interesting feature of IRP_MJ_DIRECTORY_CONTROL is the SL_INDEX_SPECIFIED
flag and the index. If this flag is set, the FileIndex parameter has to be
used. So, remember to test your filter with NTVDM because no other API can
specify this flag or parameter.
In the same context, I would like to ask someone from MS/ or anyone who has
dealt with this thing before: Why was this parameter even provided when even
NtQueryDirectoryFile does not provide a way to set it?
Regards,
Ayush Gupta
AI Consulting
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-401675-
xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Wednesday, February 17, 2010 5:28 PM
To: Windows File Systems Devs Interest List
Subject: RE:[ntfsd] File system Filter Driver problem
I wonder when you said that “if I intercept any request for file called
c”\d.mp3, I will redirect it to D:\d.mp3. where D:\ is hidden to
explorer using grup policy settings. It works fine. "
AFAIK it should not work across volumes. anyways
you can create an IRP (directory control) and send it to the d:'s
device object. when done you can copy the data to the original IRP
buffer. *you* will handle every thing here.
I think preferred way of doing it is reparse point(your effort will be
less in compare witht he previous approach) though I am not completely
aware abt this, so you better investigate first or wait for Ayush to
reply. 
Aditya
NTFSD is sponsored by OSR
For our schedule of debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer