开发者

Manufacturer String and Product string for a USB Mass storage device

开发者 https://www.devze.com 2023-03-29 09:32 出处:网络
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 stringand product string by enumerating all USB dev

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

精彩评论

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