Hi there,
I just looked for a solution on this question several days but didn't find one, could you please give me any suggestion? Thanks a lot!
The background of the question is:
We build a file filter driver for windows. When our security app is running, our driver DECRYPT the file data from disk and ENCRYPT the data when writing back to disk, so the file data on harddisk is always encrypted. Then, user cannot read file without running our app.
Unfortunately, windows has CACHE system. Windows cache gets the decrypted file data whenever our app is running or not. Therefore, if an user opens a file when our app is running, and if another user opens the same file again after quit our app, windows will read the file data from RAM cache instead of from the disk, so this user can read the file data although the file on disk has already been encrypted.
Therefore, I need a way to flush the windows file-read-cache when closing our application. But it looks like quite difficult to find a reasonable way.
Did anyone work on this before? Thanks!
Hanbear