I read here:
that the HID, PID, VID and the GUID are embedded in the hardware of the device.
so does the following make sense:
- I take a USB keyboard, plug it into my computer.
- I read out the HID, PID, VID and the GUID of the device, and save it somewhere.
- I send this HID, PID, VID and the GUID to my friends computer.
- My friend plugs in a USB keyboard.
- If the HID, PID, VID and the GUID match, then we have the same type of keyboard, it could even be the same keyboard, if it does not match, then we do not have the keyboard type.
I’m asking this because I want to differentiate between different keyboards across different computers, is this the right way to do it?
Yes, this is correct. If PID & VID matches – it is the same type of keyboard. If everything matches – it is the same keyboard.