How to make ramdisk a volume that a volume manager enumerates

I want to make ramdisk a volume that has a device name like “\device\HarddiskVolume3” and a symbliclink like “STORAGE#Volume#1~~~” created by volume manager.

So, I changed ramdisk source code to create a device interface in the MOUNTDEV_MOUNTED_DEVICE_GUID interface class by calling IoRegisterDeviceInterface and added routines to respond device control IRPs for mount manager.

However, a volume manager can’t recognize my ramdisk is attached.

I think it’s because my ramdisk’s PDO don’t have information for volume.

How can I get what I want?

Any reply will be appreciated.