Hi All,
I posted a question last week and got very good replies(thanks group for
that), this is in continuation to that question.
NOW THE PROBLEM
My device driver is meant for file security which means that the
original files are not at
all altered on making modifications.
This I acheive by copying the files opened in the IRP_MJ_WRITE in a
separte location and change the file object so that the changes are made
in the separate location.
eg
If i modify c:\abc\foo.txt
then a file d:\myspace\foo.txt
would be made and all modifications are done there (because I change the
file object to the new location).
My problem is that all the data is properly modified in the buffer, but
the original files read data (the buffer which is modified) doesn’t get
placed back into the original file and so is lost; i.e. the part of the
original file which is modified is lost in the original file (because I am
changing the fileobject in the IRP_MJ_WRITE)
How can I get that data.
Thanks
Lalit