There are two ways to go about this:
- Use an Explorer extension
- Write a device driver
The Explorer extension has the virtue of being a user-mode DLL, and there are many samples on how to go about writing one in the SDK (although not specifically for exactly what you want). If you write a driver, RAMDISK would be a good starting point, as
Don pointed out. It is likely that you will need quite a bit of additional infrastructure around such a driver, in order to specify which file is acting as the backing store, mounting and unmounting, etc.
-Brian
Azius Developer Training, Windows driver, internals, and security training See www.azius.com for information