Testing PnP

Hi,

I was wondering if anyone would care to share tips on how your product’s filter/FS is tested on removable media.

I’m currently adding PnP/misc volume operation support and I have just been sitting around playing with a USB stick manually. I’m assuming there is probably some way to automate this that people have come up with?

Thanks,
Matt

Can you make sure about your terminology? USB sticks are usually ‘removable
drives’. ‘Removable media’ is usually like a flash card, the floppy media
in a normal floppy or a USB floppy drive (which may also be a removable
drive), Bernoulli, SysQuest, Zip, etc. Also, do you care if the volume
indicates it is removable?

wrote in message news:xxxxx@ntfsd…
> Hi,
>
> I was wondering if anyone would care to share tips on how your product’s
> filter/FS is tested on removable media.
>
> I’m currently adding PnP/misc volume operation support and I have just
> been sitting around playing with a USB stick manually. I’m assuming there
> is probably some way to automate this that people have come up with?
>
> Thanks,
> Matt
>

Sorry, thanks for the correction.

Well, I need to test all of it eventually.

Let me see if I have this straight:

  1. I know if a device has removable media by looking at the FILE_REMOVABLE_MEDIA device characteristic.
  2. I know if a device is a removable drive by using IOCTL_STORAGE_GET_HOTPLUG_INFO. (This also tells me whether the media is removable if the device supports the IOCTL).

Correct?

So only a removable drive should get PnP query/surprise, etc. messages?

So I guess my question becomes: Does anyone care to share tips on testing any of this removable stuff in any kind of automated way.

Thanks,
Matt