Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Unique USB-device ID's

$
0
0

Hi, does anyone know, why USB-stick ID vary on different PC's and even one PC on different sessions?

I have a code to get DeiceID:

Dim Devices As New ManagementObjectSearcher("Select * From Win32_USBHub")
For Each mo As ManagementObject In Devices.Get()
For Each Item In mo.Properties
MsgBox(mo.Properties.Item("DeviceID").Value)
Next
Next

After that I installed 2 USB-sticks to my PC and got 2 ID's. My laptop showed 2 different ID's for the same USB-sticks.

Stick1
PC: USBSTOR\DISK&VEN_KINGSTON&PROD_DATATRAVELER_2.0&REV_\4B494E4753544F4E098601210A&0
Laptop: USBSTOR\DISK&VEN_KINGSTON&PROD_DATATRAVELER_2.0&REV_\4B494E4753544F4E498601A1AA&0

Stick2
PC: USBSTOR\DISK&VEN_JETFLASH&PROD_TRANSCEND_8GB&REV_1100\7&10F51173&0
Laptop: USBSTOR\DISK&VEN_JETFLASH&PROD_TRANSCEND_8GB&REV_1100\6&1322E5A1&0

Even this numbers changed time to time at my PC and laptop. Why it's happens and how to get stable ID's?


Aleksey


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>