Search code examples
c#c#-4.0unique

What can be used as a unique USB device identifier aside from serial number?


I'm making a USB desktop locker, much like this one but I'm trying to make it work with other USB devices (mice, kb, anything really). Are there any other unique info I can use aside from a serial number? Are there ways to access these from .NET? (C# specifically)

(I had some usb devices without a serial number, mostly from China)


Solution

  • Use USB VID and PID. Not the best way, but atleast it is one. When you are able to use a unique ID, then use it too. You can use hashfunctions to combine them too.