how to determine USB Flash drive manufacturer?

后端 未结 8 1205
栀梦
栀梦 2020-12-06 07:14

I need my program to work only with certain USB Flash drives (from a single manufacturer) and ignore all other USB Flash drives (from any other manufacturers).

is it

8条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-06 08:01

    Going through either Win32 CM_ (Device Management) or WMI and grabbing the PNP ID. Look for VID (Vendor ID).

    I see information for the device I just inserted under Win32_USBControllerDevice and Win32_DiskDrive.

提交回复
热议问题