therau2000 wrote:
>
> Several USB devices [all with different vendor/product-id, all
> removable drives with different Volume names, all formatted FAT32] are
> already connected when program starts. Windows does NOT display Volume
> names; it displays only "removable drive" and the Drive letter for
> each of them.
>
> I can easily list all USB devices and all Drive letters, BUT...
>
> How can I associate each USB device to its proper removable Drive letter?
> i.e.: device 1234:abcd   ==>   is really Drive letter F:

Xiaofan's link is the right place to start, but I want to warn you that
this is a much more difficult task than you might suspect.  Remember
that the mapping of drive letters to volumes is not 1-to-1 -- a single
removable drive can host multiple volumes, and a single volume can span
multiple drives.

The WMI solution is the easiest.  There is an API solution, but it
involves opening the raw devices, sending ioctls to query their
partition IDs, and then matching up the partition IDs.

-- 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to