Hi Vincent,
as i stated in my first answer at the end of all this,
IOCTL_STORAGE_GET_HOTPLUG_INFO only works for XP.
Indeed I’m only interested in “is it hotswap or not”,
but under W2K I need another method (=3DIOCTL_STORAGE_QUERY_PROPERTY).
Which does not help for PCMCIA disks.
Else
=
=20
“vincent gambit” =
=20
m Software Devs Interest List" =20
om> cc: =
=20
Sent by: Subject: [ntdev] R=
e: disk type (Unsigned Mail) (Unsigned Mail) (Unsigned =20
xxxxx@lis Mail) (Unsigned Mail)=
=20
ts.osr.com =
=20
=
=20
=
=20
01.10.2003 08:41 =
=20
Please respond to =
=20
“Windows System =
=20
Software Devs Interest =
=20
List” =
=20
=
=20
=
=20
yeah,
I got the same problem too
i have tried PSTORAGE_ADAPTER_DESCRIPTOR->BusType too.
ANd it give me ATA for PCMCIA hard disk
and also ATA for hotswappable hard disk for laptops.
is there a way to determine that it is a PCMCIA or a hotswappable hard
drives?
however if you use IOCTL_STORAGE_GET_HOTPLUG_INFO, you can determine th=
at
hte PCMCIA storage is a removable device by looking at the devicehotplu=
g
thank you
cheers,
vincent
>From: “Else Kluger”
>Reply-To: “Windows System Software Devs Interest List”
>
>To: “Windows System Software Devs Interest List” =
>Subject: [ntdev] Re: disk type (Unsigned Mail) (Unsigned Mail) (Unsign=
ed
>Mail)
>Date: Wed, 1 Oct 2003 07:51:26 +0200
>
>
>… which brings me back to: how I can find out if it’s a PCMCIA - the=
y
>always come as ATA?
>
>Else
>
>
>
> “Peter Wieland”
> tem
>Software Devs Interest List"
> osoft.com> cc:
> Sent by: Subject: [ntdev]=
Re:
>disk type (Unsigned Mail) (Unsigned Mail) (Unsigned
> xxxxx@lis Mail)
> ts.osr.com
>
>
> 30.09.2003 19:23
> Please respond to
> “Windows System
> Software Devs Interest
> List”
>
>
>
>
>
>
>Check IOCTL_STORAGE_QUERY_PROPERTY. Either the adapter or device
>descriptor (I don’t remember which) will contain the type of the
underlying
>bus (one type of which is USB)
>
>-p
>
>-----Original Message-----
>From: xxxxx@lists.osr.com
>[mailto:xxxxx@lists.osr.com] On Behalf Of george
>Sent: Monday, September 29, 2003 7:00 PM
>To: Windows System Software Devs Interest List
>Subject: [ntdev] Re: disk type (Unsigned Mail) (Unsigned Mail)
>
>Else Kluger,=C4=FA=BA=C3=A3=A1
>
> I just wanna write a filter driver,and in the driver I wanna kno=
w
the
>driver 's type which i just attach.Thank u !
>
>=3D=3D=3D=3D=3D=3D=3D 2003-09-30 09:25:00 =C4=FA=D4=DA=C0=B4=D0=C5=D6=D0=
=D0=B4=B5=C0=A3=BA=3D=3D=3D=3D=3D=3D=3D
>
> >Hm, you asked “how to distinguish the usb harddisk type on filter
> >driver from normal harddisk?” and I thought you’re into the type.
> >
> >After IRP_MN_START_DEVICE use IOCTL_DISK_GET_DRIVE_GEOMETRY.
> >As a removable mass storage it should return Geometry.MediaType =3D
> >RemovableMedia (versus FixedMedia).
> >A USB harddisk always comes as FixedMedia, other than memory sticks =
etc.
> >
> >Else
> >
> >
> >
> >
> > “george”
> > To: “Windows Sy=
stem
>Software Devs Interest List”
> > Sent by: cc:
> > xxxxx@lis Subject: [ntdev=
]
Re:
>disk type (Unsigned Mail) (Unsigned Mail)
> > ts.osr.com
> >
> >
> > 30.09.2003 09:09
> > Please respond to
> > “Windows System
> > Software Devs Interest
> > List”
> >
> >
> >
> >
> >
> >
> >Else Kluger,=C4=FA=BA=C3=A3=A1
> >
> > I wanna know whether it is a remoble usb mass storge device o=
r a
> >harddisk.
> > I cannot distinguish it from a harddisk.
> >
> >=3D=3D=3D=3D=3D=3D=3D 2003-09-30 08:58:00 =C4=FA=D4=DA=C0=B4=D0=C5=D6=
=D0=D0=B4=B5=C0=A3=BA=3D=3D=3D=3D=3D=3D=3D
> >
> >>Hallo,
> >>
> >>if you just want to find out, if it is NOT IDE/SCSI, you can use
> >>IOCTL_STORAGE_GET_HOTPLUG_INFO (XP), else use
> >>IOCTL_STORAGE_QUERY_PROPERTY =3D> PSTORAGE_ADAPTER_DESCRIPTOR->BusT=
ype.
> >>
> >>(BTW I myself would like to know how I can find out if it’s a PCMCI=
A -
> >they
> >>always come as ATA?)
> >>
> >>Regards
> >>Else
> >>
> >>
> >>
> >>
> >> “george”
> >> To: “Windows
System
> >Software Devs Interest List”
> >> Sent by: cc:
> >> xxxxx@lis Subject: [ntde=
v]
>disk
> >type (Unsigned Mail)
> >> ts.osr.com
> >>
> >>
> >> 30.09.2003 05:16
> >> Please respond to
> >> “Windows System
> >> Software Devs Interest
> >> List”
> >>
> >>
> >>
> >>
> >>
> >>
> >>hi!
> >> could anyone tell me how to distinguish the usb harddisk type on
> >>filter driver from normal harddisk?
> >>
> >>
> >> thank u in advance!
> >>
> >>
> >>—
> >>Questions? First check the Kernel Driver FAQ at
> >>http://www.osronline.com/article.cfm?id=3D256
> >>
> >>You are currently subscribed to ntdev as: xxxxx@utimaco.de To=
> >>unsubscribe send a blank email to xxxxx@lists.osr.com
> >>
> >>
> >>
> >>
> >>—
> >>Questions? First check the Kernel Driver FAQ at
> >http://www.osronline.com/article.cfm?id=3D256
> >>
> >>You are currently subscribed to ntdev as: xxxxx@hotmail.com To
> >>unsubscribe send a blank email to xxxxx@lists.osr.com =
.
> >
> >=3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =
=3D =3D =3D
> >
> >
> >=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=D6=C2
> >=C0=F1=A3=A1
> >
> >
> >=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1george
> >=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=xxxxx@hotmail.com
> >=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A12003-09-=
30
> >
> >
> >
> >—
> >Questions? First check the Kernel Driver FAQ at
> >http://www.osronline.com/article.cfm?id=3D256
> >
> >You are currently subscribed to ntdev as: xxxxx@utimaco.de To
> >unsubscribe send a blank email to xxxxx@lists.osr.com
>
>=3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D=
=3D =3D
>
>
>=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=D6=C2
>=C0=F1=A3=A1
>
>
>=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1george
>=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=xxxxx@hotmail.com
>=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A12003-09-30=
>
>
>
>—
>Questions? First check the Kernel Driver FAQ at
>http://www.osronline.com/article.cfm?id=3D256
>
>You are currently subscribed to ntdev as: xxxxx@microsoft.com To
>unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>—
>Questions? First check the Kernel Driver FAQ at
>http://www.osronline.com/article.cfm?id=3D256
>
>You are currently subscribed to ntdev as: xxxxx@utimaco.de
>To unsubscribe send a blank email to xxxxx@lists.osr.com
>
_________________________________________________________________
Keep track of Singapore & Malaysia stock prices.
http://www.msn.com.sg/money/
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=3D256
You are currently subscribed to ntdev as: xxxxx@utimaco.de
To unsubscribe send a blank email to xxxxx@lists.osr.com
=