Create virtual drive

I need to create virtual drive (like NeroImage does for example), and then mount an image in it. I suppose I need to use MountNTMSMedia, CreateNTMSMedia and the other RMS functions, but I don't understand much from MSDN.

I ask you to give me a short example (source code) that will explain how to create a virtual drive. Then I need you to explain what should I do to mount an image (I need to know if the image file should have a special format, if I need a dll, and if so, what functions do I need, and so on)...

I know it is a lot, but some information or links would be great...

Thanks

(I have a lot of c++ & WinAPI knowledge, so I will probably understand any source code)
[720 byte] By [BoneCollector] at [2007-11-19 1:35:43]