USB storage driver for Win2000

I have to write a driver for making my USB2IDE HDD visible as a normal HDD
in Win2000.

Just looking into the pros and cons of each method so that we take the right
approach.

Our device is not supported by usbstor.sys as it is a custom implementation.

So for making our device visible as a normal HDD

  1. Should we write a driver like usbstor.sys which acts as the storage class
    driver and will talk with my hardware. Is there any sample code? Is it the
    class driver’s responsibility for assigning the driveletters?
  2. Or can we load from the USB function driver a SCSI miniport driver and
    will that be enough?

If any of you could give me some inputs or pointers on this regards it would
be greatly helpful.

best regards,
Anoop

> 2) Or can we load from the USB function driver a SCSI miniport driver and

will that be enough?

Good luck having a way to complete SRBs.
SCSIPORT requires ScsiPortNotification to be called from a miniport context
(with SCSIPORT on the stack) - thus it cannot be called from the completion
routine called by the USB stack.
Full SCSI port driver or non-SCSI disk class drivers seem to be the only
solution on both OSes.

Max