When you plug a device into your computer, the Operating System (OS) queries the device for its Vendor ID (VID) and Product ID (PID). The OS then checks its internal database of drivers to see if it knows how to talk to that device.