How to process the INF file of the device driver

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.