2 FDOs on top of 1 PDO; writing a DVD-RAM driver

Hello,

we have a NT 4 driver for DVD-RAM drives. This driver creates a CdRom and a
removeable disk device for each physical DVD-RAM device. This seems to be
necessary to mount either disk based file systems or CD/DVD-ROM file
systems, depending on the actual type of media in the drive.

Now in Win2K the world looks a bit different, so that I’d like to ask some
questions. These questions may not make sense in this order, but I am still
in the design phase.

  1. Is it possible/allowed to layer two FDOs on top of port drivers PDO?

  2. The legacy/NT4 version of the driver runs on Win2K, but I don’t get any
    mount requests for the disk device. Are legacy disk drivers just not
    supported in Win2K or are we doing something wrong?

  3. Does anyone outside of my driver know if a particular device object is a
    FDO or a PDO? If no one really cares about it, I could add a cd/dvd type
    “partition” beneath the disk partitions, allowing CD/UDFS to mount on the
    cd/dvd device and the disk file systems mount on the disk partitions.

  4. Is there a chance to install a storage device driver without any user
    interaction? One way could be to copy my *.inf and the driver to inf\ and
    drivers, respectively and let Win2K install them when attaching the drive.
    But the drive is usually already there when our software is installed,
    that’s why I need a way to do the “Change driver…” in my setup program.

  5. Is there a way to tell pnp mgr in which order it should start the
    devices? The problem is, that CDROM.SYS assumes that it is the only one who
    creates \Device\CdRomX objects, so that he fails if someone already created
    a device with the same number. Because the disk driver handles this
    correctly, I guess Win2K SPn will fix this, but I afraid I can’t wait.

If you have some answers, hints or want to tell me that I should do it a
total different way, please let me know.

Thanks and best regards,
Detlef