Сводка директив INF

В следующем списке перечислены многие директивы ( но не все) директив, которые можно использовать в INF-файлах. Имена директив INF не учитывает регистр. For example, Addreg, addReg, and AddReg are equally valid as directive specifications within an INF file.

В этом разделе перечислены наиболее часто используемые директивы, а также их взаимные или связанные директивы. Наиболее редко используемые директивы находятся в конце списка.

AddReg Directive
This directive references one or more add-registry-sections, which are INF sections used to add or modify subkeys and value entries in the registry.

The particular INF section in which an AddReg directive resides determines the default, relative registry location that will receive modifications specified in the referenced add-registry-section. Эти расположения реестра по умолчанию обычно относятся к подразделам для конкретного устройства или драйвера.

Additional add-registry-sections can set up registry information for system-defined device interfaces (such as kernel streaming interfaces) exported to higher level drivers, for new device interfaces exported by an installed component for a given class of devices, or for driver services.

CopyFiles Directive
This directive references one or more file-list-sections specifying transfers of model/device-specific driver images and any other necessary files from the distribution media to the destination directory for each such file.

AddService Directive
This directive references at least a service-install-section, possibly with an additional event-log-install-section.

INF files for most kinds of devices (those that install drivers) have an INF-writer-defined service-install-section to specify any dependencies on system-supplied drivers or services, during which stage of the system initialization process the supplied drivers should be loaded, and so forth. Many INF files for device drivers also have an INF-writer-defined event-log-install-section that is referenced by the AddService directive to set up event logging by the device driver.

AddInterface Directive
This directive references an add-interface-section in which one or more AddReg directives are specified referencing sections that set up the registry entries for the device interfaces supported by this device/driver.

DelReg Directive
Note If you are building a universal or "Windows Driver" driver package, this directive is not valid. См . раздел "Использование универсального INF-файла".

This directive references one or more del-registry-sections used to remove obsolete subkeys and/or value entries from the registry. Например, такой раздел может отображаться в INF-файле, который обновляет предыдущую установку.

DelFiles Directive
Note If you are building a universal or "Windows Driver" driver package, this directive is not valid. См . раздел "Использование универсального INF-файла".

This rarely used directive references one or more file-list-sections specifying files to be deleted from the target of the installation.

DelService Directive
Note If you are building a universal or "Windows Driver" driver package, this directive is not valid. См . раздел "Использование универсального INF-файла".

Эта редко используемая директива удаляет ранее установленную службу.

LogConfig Directive
Note If you are building a universal or "Windows Driver" driver package, this directive is not valid. См . раздел "Использование универсального INF-файла".

This directive references one or more log-config-sections that specify acceptable bus-relative and device-specific hardware configurations in an INF for devices that are detected (by PnP device enumerators) or manually installed. Например, INF-файлы для устройств, отличных от ISA, EISA и MCA, которые устанавливаются вручную, используйте эту директиву. (См. также INF DDInstall.LogConfigOverride Section.)