Thank you for your input...
In my case, it is always a one-to-one match; all USB devices have only
one partition formatted as FAT32.
What is the API solution you were referring to? I might have to use
ioctls for another purpose...
On Mon, 2012-11-12 at 10:21 -0800, Tim Roberts wrote:
> 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
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel