Hi All,
I am working on some file monitoring mechanisms (kernel mode) and for that i
want that i keep a track of all the intermediate files formed in case of MS
Office applications and in turn find to which file (e.g. .DOC file), it is
actually linked to.
Seeing to a simple case of MS Word, suppose there is a file by name
TestFile.Doc. When this file is opened, a file with ~$ at the start is
formed, which contains the user info. This file can be easily linked to the
original file (Same name with prefix as ~$).
But when this file is saved there is a sequence of ~wr******.tmp files
formed.
To be more explainatory,
- original file is first renamed to ~WRL****.tmp. (Can easily be linked to
original file name) - ~WRD****.tmp is renamed to TestFile.doc
- Almost all temporary files are deleted (In most cases)
*Between step 1 and 2, there are certain more ~WRL****.tmp and ~WRF****.tmp
files formed*
Now in order to keep a track of all modifications on the file, i need to log
the name of original .DOC file for all these temporary files.
At the same time, there is a possibilty that a user creates a file by the
same tmp name.
I have already seen the meaning of all these temporary files on Microsoft’s
site and still have doubts how my filter driver is going to do the above
task.
I saw a few archieves on OSR regarding this, for minifilters but it won’t be
much helpful to me as i am not dealing with Minifilters and also, *Tunnel
Names* (Flt Tunnel Name retrieving functions) might not solve the whole
purpose (Especially in cases where more than one ~WRL****.tmp files are
formed for a single save operation).
So, can anyone guide me how shall i go about all this.
Thanks in advance for your help.
Regards,
Shreshth