Hi All,
Is is possible to append the Directory Table Entry in the header of one volume to the Directory Table Entry of some another drive/volume?
I mean to say, suppose I have a drive E:, in which i am creating a file test.txt,
now entry of this file will be there in Directory Entry of E: drive,
I want to add this entry to the Directory Table of D: drive, so that when I explore D: drive, it will show me test.txt in the list of files, however opening that file from D: drive may not be possible.
Thanks,
Diptesh Patel.
> Is is possible to append the Directory Table Entry in the header of one volume to the
Directory Table Entry of some another drive/volume?
Sure…
if you are just desperate to screw up the file system, this is the right way to go…
I mean to say, suppose I have a drive E:, in which i am creating a file test.txt, now entry
of this file will be there in Directory Entry of E: drive, I want to add this entry to the
Directory Table of D: drive, so that when I explore D: drive, it will show me test.txt in the
list of files, however opening that file from D: drive may not be possible.
This, indeed, can be done. However, there is no need to mess around with on-disk structures in order to achieve what you have described - you have to write a file system filter driver that modifies the return results of IRP_MJ_DIRECTORY_CONTROL that gets sent to FSD.
Anton Bassov
You need an FS filter which will replicate the creation of e:\test.txt to
d:\test.txt and then handle d:\test.txt specially.
–
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
wrote in message news:xxxxx@ntdev…
> Hi All,
> Is is possible to append the Directory Table Entry in the header of one
volume to the Directory Table Entry of some another drive/volume?
> I mean to say, suppose I have a drive E:, in which i am creating a file
test.txt,
> now entry of this file will be there in Directory Entry of E: drive,
> I want to add this entry to the Directory Table of D: drive, so that when I
explore D: drive, it will show me test.txt in the list of files, however
opening that file from D: drive may not be possible.
> Thanks,
>
> Diptesh Patel.
>