windows 驱动程序安装

来源:互联网 发布:ubuntu tty变为桌面 编辑:程序博客网 时间:2024/05/16 15:52
 

1. To facilitate device installation, devices that are set up and configured in the same manner are grouped into a device setup class. For example, SCSI media changer devices are grouped into the MediumChanger device setup class. The device setup class defines the class installer and class co-installers that are involved in installing the device.

Microsoft defines setup classes for most devices. IHVs and OEMs can define new device setup classes, but only if none of the existing classes apply. For example, a camera vendor does not have to define a new setup class because cameras fall under the Image setup class. Similarly, uninterruptible power supply (UPS) devices fall under the Battery class.

There is a GUID associated with each device setup class. System-defined setup class GUIDs are defined inDevguid.h and typically have symbolic names of the form GUID_DEVCLASS_Xxx.

The device setup class GUID defines the ..\CurrentControlSet\Control\Class\ClassGuid registry key under which to create a new subkey for any particular device of a standard setup class.

 

2. You should only create a new device setup class if absolutely necessary. It is usually possible to assign your device to one of thesystem-defined device setup classes.

If your device meets both of the following criteria, you should assign it to an existing device setup class:

  • Your device's installation and configuration requirements match those of an existing class.

  • Your device's capabilities match those of an existing class.

Under the either of following circumstances, you should consider providing a device co-installer:

  • Your device has installation requirements that are not supported by an existing device type-specific INF file.

  • Installation of your device requires device property pages that are not provided by an existing class.

If your device provides capabilities that are significantly different from the capabilities that are provided by devices that belong to existing classes, it might merit a new device setup class. However, you must never create a new setup class for a device that belongs to one of the system-supplied classes. If you do, you will bypass the system-supplied class installer and your device will not be correctly integrated into the system.

If you think a new device setup class is needed, your new class should be based on new device capabilities, and not on the device's location. For example, supporting an existing device on a new bus should not require a new setup class.

Before creating a new device setup class, contact Microsoft to find out if a new system-supplied device setup class is being planned for your device type

You can create a new device setup class by using an INF file. In addition to installing support for a device, an INF file can initialize a new device setup class for the device. Such an INF file has anINF ClassInstall32 section.