How to process the INF file of the device driver
When a USB device is connected to Windows, the Device Manager compares the data in all the INF files of the system with the device information or interface information of the USB device, the matching inf file is found. For Windows 98, to avoid reading the INF file itself every time a new device is detected, a database is created to save the call information of the INF file. The file name is drvdata. BIN and drvidx. bin, which is located in the "Windows/INF" directory. . Drvdata. Bin lists the product information contained in the INF file, and drvidx. Bin lists the vendor ID and product ID in the INF file. After windows obtains the hardware ID or compatibility ID from the USB device, it uses the information in the two files to find the INF file that matches the device. The process is generally as follows:
1. In Windows, the supplier field and product field (idvendor, idproduct, and bcddevice) of the device descriptor in the USB device are used to form the hardware ID of the device and find the INF file matching the Alkaline Level.
2. If not, Windows uses the class field, subclass field, and Protocol field (binterfaceclass, binterfacesubclass, and binterfaceprotocol) of the interface descriptor to form the compatible ID of the device, and find the INF file that matches the compatible ID.
3. If the file is still not found, Windows will prompt you to locate the directory where the USB device inf file is located. The correct device driver has been installed.
In Windows 2000, the INF file processing process is similar to the preceding process.