- Detect USB drive, Memory Stick and SD/MMC in Windows
- Posted by sengupta.amit@gmail.com on May 29th, 2008
Using DeviceIoCtl is it possible to distinguish between a memory
stick, an SD/MMC card and a pen drive all on the USB bus?
I have an application in vc++ which is able to identify usb devices
but is unable to isolate a pendrive from the devices. Ideally the app
needs to locate all USB drives which have a read/writable filesystem.
Thanks in advance.
- Posted by sengupta.amit@gmail.com on May 29th, 2008
Thank you for the reply.
I am already using IOCTL_STORAGE_QUERY_PROPERTY and checking the bus
type and making sure its USB type. I think the code is fine. I just
dont know for sure if a memory stick and an SD/MMC card return similar
values as a pen drive.
Is an SD/MMC card writable like any other drive?
On May 29, 12:08 pm, Uwe Sieber <m...@uwe-sieber.de> wrote:
- Posted by Uwe Sieber on May 29th, 2008
sengupta.amit@gmail.com wrote:
- IOCTL_STORAGE_QUERY_PROPERTY for checking the BusType
- GetVolumeInformatin for checking the file system
Uwe
- Posted by Christian ASTOR on May 29th, 2008
sengupta.amit@gmail.com wrote:
You can see USBView.c sample (DDK)
(SetupDi* apis)
- Posted by Uwe Sieber on May 29th, 2008
No, there is no reliable way to distinguish between
pen drives and single slot SD/MMC readers.
The only thing to check it the device's friendly
name.
Some readers have 'taking' names like "USB 2.0 SD/MMC Reader",
"SanDisk SDDR-113" or "Multi Flash Reader" but most have
names like "Generic" or "USB Storage"...
Uwe
sengupta.amit@gmail.com wrote: