Table of contents
TOC
Collapse the table of content
Expand the table of content

INF Sections

Last Updated: 7/30/2016

The topics in this section describe the syntax of the sections that can appear in INF files. These topics provide detailed information about the INF sections, and are listed in the order in which they typically appear within an INF file.

In this section

TopicDescription

INF ClassInstall32 Section

Note If you are building a universal or mobile driver package, this section is not valid. See Using a Universal INF File.

A ClassInstall32 section installs a new device setup class (and possibly a class installer) for devices in the new class.

INF ClassInstall32.Services Section

Note If you are building a universal or mobile driver package, this section is not valid. See Using a Universal INF File.

A ClassInstall32 section installs a new device setup class (and possibly a class installer) for devices in the new class.

INF ControlFlags Section

Note If you are building a universal or mobile driver package, this section is not valid. See Using a Universal INF File.

A ControlFlags section identifies devices for which Windows should take certain unique actions during installation.

INF DDInstall Section

Each per-Models DDInstall section contains an optional DriverVer directive and one or more directives referencing additional named sections in the INF file, shown here with the most frequently specified INF directives, CopyFiles and AddReg, listed first.

The sections referenced by these directives contain instructions for installing driver files and writing any device-specific and/or driver-specific information into the registry.

INF DDInstall.CoInstallers Section

Note If you are building a universal or mobile driver package, this section is not valid. See Using a Universal INF File.

This optional section registers one or more device-specific co-installers supplied on the distribution media to supplement the operations of existing device class installers.

INF DDInstall.FactDef Section

Note If you are building a universal or mobile driver package, this section is not valid. See Using a Universal INF File.

This section should be used in an INF for any manually installed non-PnP device that an end-user might install. This section specifies the factory-default hardware configuration settings, such as the bus-relative I/O ports and IRQ (if any), for such a card.

INF DDInstall.HW Section

DDInstall.HW sections are typically used for installing multifunction devices, for installing PnP filter drivers, and for setting up any user-accessible device-specific but driver-independent information in the registry, whether with explicit AddReg directives or with Include and Needs entries.

INF DDInstall.Interfaces Section

Each per-Models DDInstall.Interfaces section can have one or more AddInterface directives, depending on how many device interfaces a particular device/driver supports.

INF DDInstall.LogConfigOverride Section

Note If you are building a universal or mobile driver package, this section is not valid. See Using a Universal INF File.

DDInstall.LogConfigOverride sections are used to create an override configuration, which overrides the hardware resource requirements that a Plug and Play device's bus driver reports.

INF DDInstall.Services Section

Each per-Models DDInstall.Services section contains one or more INF AddService directives that reference additional INF-writer-defined sections in an INF file.

INF DDInstall.WMI Section

An INF DDInstall.WMI section contains one or more WMIInterface directives that specify characteristics for each WMI class that the driver provides.

INF DefaultInstall Section

Note If you are building a universal or mobile driver package, this section is not valid. See Using a Universal INF File.

An INF file's DefaultInstall section is accessed if a user selects the "Install" menu item after right-clicking on the INF file name.

INF DefaultInstall.Services Section

Note If you are building a universal or mobile driver package, this section is not valid. See Using a Universal INF File.

A DefaultInstall.Services section contains one or more AddService directives referencing additional INF-writer-defined sections in an INF file. This section is equivalent to the INF DDInstall.Services section, and is used in association with an INF DefaultInstall section.

INF DestinationDirs Section

A DestinationDirs section specifies the target destination directory or directories for all copy, delete, and/or rename operations on files referenced by name elsewhere in the INF file.

INF InterfaceInstall32 Section

This section creates one or more new device interface classes. After a new class is created, subsequently installed devices/drivers can be registered to support the new device interface class by using INF DDInstall.Interfaces sections in their respective INF files, or by calling IoRegisterDeviceInterface.

INF Manufacturer Section

The Manufacturer section identifies the manufacturer of one or more devices that can be installed by using the INF file.

INF Models Section

A per-manufacturer Models section identifies at least one device, references the DDInstall section of the INF file for that device, and specifies a unique-to-the-model-section hardware identifier (ID) for that device.

Any entry in the per-manufacturer Models section can also specify one or more additional device IDs for models that are compatible with the device designated by the initial hardware ID and are controlled by the same drivers.

INF SignatureAttributes Section

This section allows users to request additional signatures as required by certain certification scenarios. Examples of these scenarios are: Protected Environment media playback, Early Launch Antimalware, and third party HAL extensions. These additional signatures will only be applied if your Hardware Certification Kit package contains the proper Features and passing Tests.

INF SourceDisksFiles Section

The SourceDisksFiles section names the source files that are used during installation, identifies the installation disks that contain those files, and provides the directory paths, if any, on the distribution disks that contain individual files.

In order for a driver file or an application file to be included as part of a signed driver package, the file must have a corresponding INF SourceDisksFiles section entry and a corresponding INF CopyFiles directive.

INF SourceDisksNames Section

A SourceDisksNames section identifies the distribution disks or CD-ROM discs that contain the source files to be transferred to the target computer during installation.

INF Strings Section

An INF file must have at least one Strings section to define every %strkey% token specified elsewhere in that INF.

INF Version Section

By convention, the Version section appears first in INF files. Every INF file must have this section.

For more information about the syntax rules for INF sections, see General Syntax Rules for INF Files.

© 2017 Microsoft