Having read a lot of messages about memory mapped files. I still cannot
figure out which is the best way to solve the problem - how to terminate
the mapped file cache ??
Below shows a scenario of my driver having the aforementioned problem:
- Load the filter driver (developed based on Filemon sample from
SysInternal)
- Open an encrypted file by MS Notepad to read -> [ get original content
]
- Close Notepad
- Unload the filter driver
- Open the encrypted file by Notepad again -> [ get original content

]
Any expertise, please advise me with a more PRACTICAL and COMPREHENSIVE
solution.
Thanks and Regards,
– Philip
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> Having read a lot of messages about memory mapped files. I still cannot
figure out which is the best way to solve the problem - how to terminate
the mapped file cache ??
Below shows a scenario of my driver having the aforementioned problem:
- Load the filter driver (developed based on Filemon sample from
SysInternal)
- Open an encrypted file by MS Notepad to read -> [ get original content
]
- Close Notepad
- Unload the filter driver
- Open the encrypted file by Notepad again -> [ get original content

]
Issue a Win 32 API FlushFileBuffers for the drive which contains the file.
(Get the file handle of the drive using CreateFile). You will get the
encrypted content.
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> figure out which is the best way to solve the problem - how to terminate
the mapped file cache ??
You cannot.
See Rajeev Nagar’s book.
Max
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com