Intercept windows open file

Posted by HyLian on Stack Overflow See other posts from Stack Overflow or by HyLian
Published on 2009-07-10T13:36:53Z Indexed on 2010/04/21 11:33 UTC
Read the original article Hit count: 277

Filed under:
|
|
|
|

Hello,

I'm trying to make a small program that could intercept the open process of a file.

The purpose is when an user double-click on a file in a given folder, windows would inform to the software, then it process that petition and return windows the data of the file.

Maybe there would be another solution like monitoring Open messages and force Windows to wait while the program prepare the contents of the file.

One application of this concept, could be to manage desencryption of a file in a transparent way to the user. In this context, the encrypted file would be on the disk and when the user open it ( with double-click on it or with some application such as notepad ), the background process would intercept that open event, desencrypt the file and give the contents of that file to the asking application.

It's a little bit strange concept, it could be like "Man In The Middle" network concept, but with files instead of network packets.

Thanks for reading.

© Stack Overflow or respective owner

Related posts about Windows

Related posts about file-io