拦截窗口打开文件 [英] Intercept windows open file

查看:134
本文介绍了拦截窗口打开文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



目的是当用户双击一个文件时,一个给定的文件夹,Windows将通知软件,然后处理该请求并返回窗口的文件的数据。



也许会有另一种解决方案,如监控开放消息并强制Windows等待程序准备文件的内容。



这个概念的一个应用可能是以透明的方式管理文件的加密用户。
在这种情况下,加密的文件将在磁盘上,当用户打开它(双击它或与某些应用程序,如记事本)时,后台进程会拦截该打开的事件,解密该文件并将该文件的内容提供给询问应用程序。



这是一个有点奇怪的概念,它可能像人在中间的网络概念,但与文件



感谢阅读。

解决方案

通过文件来完成从任何程序开始的所有案例,最好的方法系统过滤驱动程序。这可能对您的需求来说太复杂了。


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.

解决方案

The best way to do it to cover all cases of opening from any program would be via a file system filter driver. This may be too complex for your needs though.

这篇关于拦截窗口打开文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆