views:

53

answers:

2

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?

+2  A: 

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

JaredReisinger
No, it's not. Reparse points are different entities. FS filter drivers are what Gabriel needs, not reparse points.
Eugene Mayevski 'EldoS Corp
Ah, I see. (For reference, the File System Filter docs are at http://msdn.microsoft.com/en-us/library/ff540382(v=VS.85).aspx)
JaredReisinger
+1  A: 

Take a look at the TrueCrypt source code its open source and it does something very close to what you want: "# Creates a virtual encrypted disk within a file and mounts it as a real disk."

kloucks
TrueCrypt is different. It offers a virtual disk driver, while filtering is done by file system filter drivers.
Eugene Mayevski 'EldoS Corp