winapi - How does windows identify a USB device uniquely? -


how windows identify usb device uniquely, though device data supplied usb device common devices of make ? state alternatively, windows can distinguish between 2 instances of dell keyboards of same model, without keyboard supplying unique serial number. exclusive data field windows searches when initializing usb device ?

windows uses device instance id identification. can see in documentation contains device part , instance part.

the device part taken usb device.

it bus driver how generate instance part. bus driver cannot solely rely on information returned usb device. because 2 identical devices break system - device instance ids must unique! appends additional info - port number , etc (the exact algorithms unknown , depends on driver manufacturer). pnp manager can add more uniqueness instance id.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -