Question How does a PC know what a connected device is?

Oct 31, 2024
6
0
10
When I connect a CD-ROM drive to a PC, Device Manager (for Windows) knows what type of hardware it is. How is that done? Is there a textfield with "CD-ROM" in it in the device? Or is it a numeric field, for example, "12345" which translates to CD-ROM? If someone wants to point me to a technical webpage that explains this, wonderful.
 
One of the aspects I have really appreciated since W7 was for the update system to know what drivers to get. Before that you had to manually look up the Hardware ID and find suitable drivers (if you lost your drivers disk).