Find drive letter from DBT_DEVICEARRIVAL event for USB mass storage device RRS feed

  • Question

  • Hi List

    I have written a service that detects the insertion of USB mass storage devices. 

    In the callback for the DBT_DEVICEARRIVAL I have the device interface name (for example)



    From the dbcc_name how do I determine the drive letter on the system that this interface corresponds to?

    I have had a look at the Setupapi.lib, however I am just going around in circles and I cannot determine which call based on the information that I have corresponds to my drive(s).

    The drive I am testing with presents as two devices a CDROM and USB Storage device in Windows.



    • Moved by jack 321 Wednesday, October 15, 2008 10:14 AM off topic (Moved from Visual C++ General to Off-Topic Posts (Do Not Post Here))
    Sunday, October 12, 2008 12:58 AM