Getting Drive Letter of USB Drive

I have a situation where I need to be able to determine the drive letter
assigned to a USB thumbdrive in a specific port in a specific USB hub. My
system has two hubs connected to the root hub. Each hub has 4 thumbdrives.
Users will be removing the thumbdrives and replacing them and I need to
determine the drive letter associated with each of the 8 ports. Does anyone
know a way to do this?

Rick Poole

Determine as in ‘predict’ or determine as in ‘query’? The query is easy:
just query the mountpoints, one of which will be the drive letter. The
sdk has apis for volume mountpoint enumeration.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of ‘Rick Poole’
Sent: Tuesday, June 13, 2006 11:52 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Getting Drive Letter of USB Drive

I have a situation where I need to be able to determine the drive letter
assigned to a USB thumbdrive in a specific port in a specific USB hub.
My system has two hubs connected to the root hub. Each hub has 4
thumbdrives. Users will be removing the thumbdrives and replacing them
and I need to determine the drive letter associated with each of the 8
ports. Does anyone know a way to do this?

Rick Poole


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer