开发者

Manufacturer String and Product string for a USB Mass storage device

I want to extract the manufacturer string and product string for a specific Mass storage USB device let's say C:. I am able to extract manufacturer string and product string by enumerating all USB devices but now I don't know how to associate specific USB drive to manufacturer ID and Product ID. I am on Windows platform and using Visual Studio for development.

Any help would be highly appreciated.

F开发者_StackOverflow中文版arooq-


Use this sample to find the corresponding device node for your mounted drive: http://www.codeproject.com/KB/system/RemoveDriveByLetter.aspx

Then, query the device using SetupDiGetDeviceProperty (using the SPDRP_Xxx identifiers as defined in Setupapi.h).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜