How to implement a file system based on file type?

I want, in fact, to make it so that you do not need to unpack / unpack any files. I currently have a Dokan file system that can do this given a specific zip file, but I would like to know how I can apply it to all files. Meaning, I want to be able to compile a program that has "fopen (" test.zip/1.jpg "," rb ");". I think that the Shell Extension will work to dynamically load a file into the file system if I were looking in the Explorer shell, but that does not help me with the fopen example. Any ideas?

+4
source share
1 answer

What you want to do, you can use the file system filter driver, which will track directory listing requests and report directories instead of ZIP files. Then this driver will create virtual files and take data from ZIP archives. I have to say that a lot of work in kernel mode. And the file system filter driver is not a file system driver, so docking will not help you at all.

+1
source

Source: https://habr.com/ru/post/1334876/


All Articles