Help mounting

Hello,

This is actualy a repost.

I am creating a virtual device with IoCreateDevice. I use
IoCreateSymbolicLink to link it to a drive letter. When I am using
FILE_DEVICE_CD_ROM everything works fine. But when I use FILE_DEVICE_DVD
it does not get mounted… the system doesn’t see it. Something happens,
or I am forgeting something. Someone already told me that for
FILE_DEVICE_DVD I must do something extra when initializing. I cannot
figure out what I have to do? I looked over the sources in DDK: cdrom and
classpnp. I saw that in CdRomStartDevice() routine they are just returning
STATUS_SUCCESS if it’s a FILE_DEVICE_CD_ROM. For DVD they are calling
IOCTL_DVD_READ_KEY… but using a function from class sources. But I do
not understand what they a re trying to do by that.

So, please, I just need someone to clear this for me. What I have to do to
get the FILE_DEVICE_DVD mounted correctly so the system will “see” it.

I repeat that for FILE_DEVICE_CD_ROM everything works but I guess that for
FILE_DEVICE_DVD I have to make some extra initialization after
IoCreateSymbolicLink… but I do not know what.

Thank you,
Andrei Ciubotaru