Re: IOCTL_STORAGE_GET_MEDIA_TYPES_EX



the same driver controls a 1.1 or 2.0 connected mass storage device. i think the randomness you see is due different bridges that expose the device as a usb device. the driver itself just follows the mass storage spec and returns the data that the drive reports

d


--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Norman Diamond" <ndiamond@xxxxxxxxxxxxxxxx> wrote in message news:ey80n$GlIHA.2268@xxxxxxxxxxxxxxxxxxxxxxx
Today's quiz.

Q1. If a hard drive is connected through a USB-to-IDE adapter using Microsoft's driver stack for USB2 and hard drives, then does IOCTL_STORAGE_GET_MEDIA_TYPES_EX succeed or does it fail with GetLastError() set to 1 (approximate translation: function is making a mistake)?

A1. Yes. In fact it is so reliable today that we could make a randomizing device by taping the hard drives to each other, flipping them like a coin, and connect whichever drive lands on top. If the Fujitsu drive connects then IOCTL_STORAGE_GET_MEDIA_TYPES_EX succeeds but if the Hitachi drive connects then IOCTL_STORAGE_GET_MEDIA_TYPES_EX fails.

Q2. If a hard drive is connected through a USB-to-IDE adapter using Microsoft's driver stack for USB2 and hard drives, then does IOCTL_STORAGE_GET_MEDIA_TYPES (no EX) succeed or does it fail with GetLastError() set to 50 (approximate translation: this request is not supported)?

A2. Not sure. The reason is that if IOCTL_STORAGE_GET_MEDIA_TYPES_EX succeeds then I neglect to call IOCTL_STORAGE_GET_MEDIA_TYPES (no EX). However, with the Hitachi drive, IOCTL_STORAGE_GET_MEDIA_TYPES (no EX) always fails.

Q3. If a hard drive is connected through a USB-to-IDE adapter using Microsoft's driver stack for USB1.1 and hard drives because Microsoft's driver for USB2 randomly decided that it didn't want to work this time, then do IOCTL_STORAGE_GET_MEDIA_TYPES_EX and IOCTL_STORAGE_GET_MEDIA_TYPES (no EX) succeed or fail?

A3. Oops this one has a reliable answer, at least today. In this situation they always fail, at least today.

Q4. Why?

.



Relevant Pages

  • Re: RAMDisk and harddisk - Revisited
    ... but your constatation that driver load fails is not accurate in some amount based on info you gave us. ... Only if it is a cloned disk they can have same diskid, but this would be completely different error. ... the ATA Flash Disk was detectable and mountable from RAMDisk image as described. ... e.g. IDE ATA Flash or IDE hard drives. ...
    (microsoft.public.windowsxp.embedded)
  • Re: Win 98 Motherboard Recommendation Needed
    ... MPV chip set, Win 98 SE, 80 GB Maxtor IDE hard drive, and ATI Radeon ... drive to boot your old computer - the "rescue" computer. ... Microsoft driver. ... get an old OS to work with newer hard drives like SATA. ...
    (alt.comp.hardware.pc-homebuilt)
  • Re: I would like to connect a third SATA Hard Drive WITHOUT using RAID.
    ... of my motherboard WITHOUT using RAID. ... hard drives connected successfully to the SATA1 and SATA2 ... I believe that the two SATA_RAID interfaces are supported by the ... I have tried to update this driver with the ones on the ASUS Support ...
    (alt.comp.periphs.mainboard.asus)
  • Fwd: RE: RE: RHEL4 and HP Proliant server
    ... install the driver ... ... It did in fact come back and say no hard drives ... RHEL4 and HP Proliant server ... If there are no logical drives on the hardware raid then ...
    (RedHat)
  • IOCTL_STORAGE_GET_MEDIA_TYPES_EX
    ... If a hard drive is connected through a USB-to-IDE adapter using Microsoft's driver stack for USB2 and hard drives, then does IOCTL_STORAGE_GET_MEDIA_TYPES_EX succeed or does it fail with GetLastErrorset to 1 ... The reason is that if IOCTL_STORAGE_GET_MEDIA_TYPES_EX succeeds then I neglect to call IOCTL_STORAGE_GET_MEDIA_TYPES. ...
    (microsoft.public.development.device.drivers)