HardwareID就是了
[HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Enum/USBSTOR/Disk&Ven_Netac&Prod_OnlyDisk&Rev_1.11/221D19FD3D8E6261&0]
"DeviceDesc"="Disk drive"
"Capabilities"=dword:00000010
"UINumber"=dword:00000000
"HardwareID"=hex(7):55,00,53,00,42,00,53,00,54,00,4f,00,52,00,5c,00,44,00,69, 00,73,00,6b,00,4e,00,65,00,74,00,61,00,63,00,5f,00,5f,00,5f,00,4f,00,6e,00, 6c,00,79,00,44,00,69,00,73,00,6b,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f, 00,5f,00,31,00,2e,00,31,00,31,00,00,00,55,00,53,00,42,00,53,00,54,00,4f,00, 52,00,5c,00,44,00,69,00,73,00,6b,00,4e,00,65,00,74,00,61,00,63,00,5f,00,5f, 00,5f,00,4f,00,6e,00,6c,00,79,00,44,00,69,00,73,00,6b,00,5f,00,5f,00,5f,00, 5f,00,5f,00,5f,00,5f,00,5f,00,00,00,55,00,53,00,42,00,53,00,54,00,4f,00,52, 00,5c,00,44,00,69,00,73,00,6b,00,4e,00,65,00,74,00,61,00,63,00,5f,00,5f,00, 5f,00,00,00,55,00,53,00,42,00,53,00,54,00,4f,00,52,00,5c,00,4e,00,65,00,74, 00,61,00,63,00,5f,00,5f,00,5f,00,4f,00,6e,00,6c,00,79,00,44,00,69,00,73,00, 6b,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,31,00,00,00,4e,00,65, 00,74,00,61,00,63,00,5f,00,5f,00,5f,00,4f,00,6e,00,6c,00,79,00,44,00,69,00, 73,00,6b,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,31,00,00,00,55, 00,53,00,42,00,53,00,54,00,4f,00,52,00,5c,00,47,00,65,00,6e,00,44,00,69,00, 73,00,6b,00,00,00,47,00,65,00,6e,00,44,00,69,00,73,00,6b,00,00,00,00,00
"CompatibleIDs"=hex(7):55,00,53,00,42,00,53,00,54,00,4f,00,52,00,5c,00,44,00, 69,00,73,00,6b,00,00,00,55,00,53,00,42,00,53,00,54,00,4f,00,52,00,5c,00,52, 00,41,00,57,00,00,00,00,00
"Service"="disk"
"ClassGUID"="{4D36E967-E325-11CE-BFC1-08002BE10318}"
"ConfigFlags"=dword:00000000
"ParentIdPrefix"="7&66a18cb&1"
"Driver"="{4D36E967-E325-11CE-BFC1-08002BE10318}//0003"
"Class"="DiskDrive"
"Mfg"="(Standard disk drives)"
"FriendlyName"="Netac OnlyDisk USB Device"
[HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Enum/USBSTOR/Disk&Ven_____&Prod______&Rev_4.00/1F3312000265&0]
"DeviceDesc"="Disk drive"
"Capabilities"=dword:00000010
"UINumber"=dword:00000000
"HardwareID"=hex(7):55,00,53,00,42,00,53,00,54,00,4f,00,52,00,5c,00,44,00,69, 00,73,00,6b,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00, 5f,00,5f,00,5f,00,5f,00,5f,00,34,00,2e,00,30,00,30,00,00,00,55,00,53,00,42, 00,53,00,54,00,4f,00,52,00,5c,00,44,00,69,00,73,00,6b,00,5f,00,5f,00,5f,00, 5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,00, 00,55,00,53,00,42,00,53,00,54,00,4f,00,52,00,5c,00,44,00,69,00,73,00,6b,00, 5f,00,5f,00,5f,00,5f,00,00,00,55,00,53,00,42,00,53,00,54,00,4f,00,52,00,5c, 00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00, 5f,00,5f,00,5f,00,34,00,00,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f, 00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,5f,00,34,00,00,00,55,00,53,00,42,00, 53,00,54,00,4f,00,52,00,5c,00,47,00,65,00,6e,00,44,00,69,00,73,00,6b,00,00, 00,47,00,65,00,6e,00,44,00,69,00,73,00,6b,00,00,00,00,00
"CompatibleIDs"=hex(7):55,00,53,00,42,00,53,00,54,00,4f,00,52,00,5c,00,44,00, 69,00,73,00,6b,00,00,00,55,00,53,00,42,00,53,00,54,00,4f,00,52,00,5c,00,52, 00,41,00,57,00,00,00,00,00
"Service"="disk"
"ClassGUID"="{4D36E967-E325-11CE-BFC1-08002BE10318}"
"ConfigFlags"=dword:00000000
"ParentIdPrefix"="7&37a5937&1"
"Driver"="{4D36E967-E325-11CE-BFC1-08002BE10318}//0000"
"Class"="DiskDrive"
"Mfg"="(Standard disk drives)"
"FriendlyName"="神州数码 移动数码盘 USB Device"
上述代码支持2000或以上系统有效