Hi,
I have tried IOCTL_STORAGE_GET_HOTPLUG_INFO on win2k, it worked for me
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) (Unsigned
>Mail) (Unsigned Mail)
>Date: Wed, 1 Oct 2003 09:55:29 +0200
>
>
>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 (=IOCTL_STORAGE_QUERY_PROPERTY).
>Which does not help for PCMCIA disks.
>
>Else
>
>
>
> “vincent gambit”
> >Software Devs Interest List"
> om> cc:
> Sent by: Subject: [ntdev] Re:
>disk type (Unsigned Mail) (Unsigned Mail) (Unsigned
> xxxxx@lis Mail) (Unsigned Mail)
> ts.osr.com
>
>
> 01.10.2003 08:41
> Please respond to
> “Windows System
> Software Devs Interest
> List”
>
>
>
>
>
>
>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 that
>hte PCMCIA storage is a removable device by looking at the devicehotplug
>
>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) (Unsigned
> >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 - they
> >always come as ATA?
> >
> >Else
> >
> >
> >
> > “Peter Wieland”
> > > >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,ÄúºÃ£¡
> >
> > I just wanna write a filter driver,and in the driver I wanna know
>the
> >driver 's type which i just attach.Thank u !
> >
> >======= 2003-09-30 09:25:00 ÄúÔÚÀ´ÐÅÖÐдµÀ£º=======
> >
> > >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 =
> > >RemovableMedia (versus FixedMedia).
> > >A USB harddisk always comes as FixedMedia, other than memory sticks
>etc.
> > >
> > >Else
> > >
> > >
> > >
> > >
> > > “george”
> > > To: “Windows
>System
> >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,ÄúºÃ£¡
> > >
> > > I wanna know whether it is a remoble usb mass storge device or a
> > >harddisk.
> > > I cannot distinguish it from a harddisk.
> > >
> > >======= 2003-09-30 08:58:00 ÄúÔÚÀ´ÐÅÖÐдµÀ£º=======
> > >
> > >>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 => PSTORAGE_ADAPTER_DESCRIPTOR->BusType.
> > >>
> > >>(BTW I myself would like to know how I can find out if it’s a PCMCIA -
> > >they
> > >>always come as ATA?)
> > >>
> > >>Regards
> > >>Else
> > >>
> > >>
> > >>
> > >>
> > >> “george”
> > >> To: “Windows
>System
> > >Software Devs Interest List”
> > >> Sent by: cc:
> > >> xxxxx@lis Subject: [ntdev]
> >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=256
> > >>
> > >>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=256
> > >>
> > >>You are currently subscribed to ntdev as: xxxxx@hotmail.com To
> > >>unsubscribe send a blank email to xxxxx@lists.osr.com .
> > >
> > >= = = = = = = = = = = = = = = = = = = =
> > >
> > >
> > >¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÖÂ
> > >Àñ£¡
> > >
> > >
> > >¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡george
> > >¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡xxxxx@hotmail.com
> > >¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2003-09-30
> > >
> > >
> > >
> > >—
> > >Questions? First check the Kernel Driver FAQ at
> > >http://www.osronline.com/article.cfm?id=256
> > >
> > >You are currently subscribed to ntdev as: xxxxx@utimaco.de To
> > >unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >= = = = = = = = = = = = = = = = = = = =
> >
> >
> >¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÖÂ
> >Àñ£¡
> >
> >
> >¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡george
> >¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡xxxxx@hotmail.com
> >¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2003-09-30
> >
> >
> >
> >—
> >Questions? First check the Kernel Driver FAQ at
> >http://www.osronline.com/article.cfm?id=256
> >
> >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=256
> >
> >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=256
>
>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=256
>
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com
Take a break! Find destinations on MSN Travel. http://www.msn.com.sg/travel/