简体   繁体   中英

Is there a way to hook into the windows file system so that for a particular directory I controlled every bit with custom code?

I'm interested to know if there's any method/mechanism to roll my own virtual file system that will run on modern windows. The idea would be that no matter what part of the operating system tried to access files under the directory I "control", all of the operations are filtered through some kind of callback code. If not, is there a fundamental reason why?

You absolutely can do this, it's called a "reparse point". See MSDN for the details.

Eugene is correct... you want to look at the documentation for File System Filters, not for reparse points.

看一下TrueCrypt源代码的开放源代码,它做了与您想要的非常接近的事情: “#在文件内创建虚拟加密磁盘,并将其安装为真实磁盘。”

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM