Shell Extension - Create Virtual File
I want to create a file that is only in memory ... While looking at some documentation I saw a recommendation to use a shell extension as a virtual file. I'm not sure if this is an acceptable solution, but I would like to know
- This is a good approach (or should I use a ramdisk instead)
- Where is a good place to start reading about this.
Note. It's on Windows platform
source to share
As I understand it, you want your program to create a "file" that is only in memory and that you can navigate to another external program (eg Microsoft Word).
AFAIK this is not possible except the ramp. I would suggest using a temp folder. However, you will have to come up with a strategy for deleting the file when you no longer need it.
Added: Second, you can check reparse points . I'm not familiar with them myself and they will only work for NTFS formatted drives, but maybe they can provide you with what you want. It will be a lot of coding though.
source to share
You don't say which plate you are on, but I'm guessing about Windows. Is mmap () available? If not, I think BerkeleyDB has been ported to Windows so you can use it. The Win32 API might have something similar to mmap (), but I don't know that.
source to share