共用方式為


INF 區段的摘要

下列摘要說明可用於 INF 檔案的系統定義區段。 系統定義的區段名稱不區分大小寫。 For example, version, VERSION, and Version are equally valid section-names within an INF file.

本節說明 INF 檔案區段的順序,與它們通常會出現在大部分裝置 INF 檔案中的順序相同。 不過,這些區段實際上可以任意順序指定。 Windows 會依區段名稱尋找每個 INF 檔案中的所有區段,而不是依循序排列,無論是系統定義還是 INF 寫入器定義。

Version Section
這是每個 INF 檔案的必要區段。 For installation on Windows 2000 and later versions of Windows, this section must have a valid Signature entry.

SignatureAttributes Section
INF 的這個區段會定義一組要內嵌簽署的檔案,做為硬體認證的一部分。 具有特定特殊需求的裝置需要這些額外的簽章。 範例包括受保護的環境媒體播放、早期啟動反惡意代碼軟體和第三方 HAL 擴充功能。

SourceDisksNames Section
This section is required if the INF file has a corresponding SourceDisksFiles section.

SourceDisksFiles Section
本節會識別要從發佈媒體安裝到目標計算機上的目的地的檔案位置。 An INF file that has this section must also have a SourceDisksNames section.

DestinationDirs Section
INF files have a DestinationDirs section to specify destination directories for any files that the INF references with a CopyFiles directive. This section is required if the INF uses CopyFiles.

ControlFlags Section
Generally, most INF files for device drivers and for the system class installers have this section so they can exclude, via the ExcludeFromSelect directive, at least a subset of Models entries from the list of manually installable devices to be displayed to end-users. 僅安裝 PnP 裝置的 INF 檔案會隱藏所有模型特定信息的顯示。

Manufacturer Section
在裝置及其驅動程式的 INF 檔案中,需要本節。

The Manufacturer section of an INF file is sometimes called a "Table of Contents," because each of its entries references an INF-writer-defined Models section, which, in turn, references additional INF-writer-defined sections, such as a per-models-entry DDInstall section, DDInstall.Services section, and so forth.

Models Section (per Manufacturer entry)
本節必須識別 INF 檔案安裝驅動程式的裝置。 It specifies a set of mappings between the generic name (string) for a device, the device ID, and the name of the DDInstall section, elsewhere in the INF file that contains the installation instructions for the device.

An INF file that installs one or more devices and drivers for a single provider would have only one Models section, but system INF files for device classes can have many INF-writer-defined Models sections.

DDInstall Section (per Models entry)
This section is required to actually install any devices that are listed in a Models section in the INF file, along with the drivers for each such device. A DDInstall section can be shared by more than one Models section.

DDInstall.Services Section
如果 INF 檔案需要在安裝裝置時於系統上建立任何服務,則需要本節。 本節會控制如何及何時啟動正在建立的服務、其相依性(如果有的話)在其他服務上等等。 如果設備驅動器支援事件記錄,本節也會設定事件記錄服務。

DDInstall.HW Section
此選擇性區段會將裝置特定(通常是與驅動程序無關)資訊新增至登錄。

DDInstall.Events Section

此選擇性區段可讓 INF 登錄 ETW 提供者,並建立 AutoLogger 註冊。

DDInstall.Components Section

This optional section allows for one or more AddComponent directives to be specified to create child component devices.

DDInstall.Software Section

This optional section allows for one or more AddSoftware directives to be specified to install standalone software.

DDInstall.Interfaces Section
如果驅動程式導出裝置介面類別的功能,因此建立介面類別的新實例,例如內核串流仍映射擷取或數據解壓縮,其 INF 檔案可以有本節。 本節可用來將裝置介面預先建立為停用的介面,其中包含 INF 檔案所提供的一些初始狀態。

InterfaceInstall32 Section
如果要安裝的元件,例如新的類別驅動程式,提供一或多個新的 裝置介面類別 至較高層級的元件,其 INF 檔案可以有本節。 這可用來在該類別中註冊任何介面之前預先建立裝置介面類別。 在類別中註冊介面不需要預先建立類別,但 INF 中的這個區段可讓 INF 將某些狀態與裝置介面類別產生關聯。

DDInstall.FactDef Section
Note If you are building a universal or "Windows Driver" driver package, this section is not valid. 請參閱 使用通用 INF 檔案

本節應該包含在任何手動安裝的非 PnP 裝置的 INF 檔案中。 它會指定處理站的預設硬體組態設定,例如總線相對 I/O 連接埠、IRQ(如果有的話),依此類推。

DDInstall.LogConfigOverride Section
Note If you are building a universal or "Windows Driver" driver package, this section is not valid. 請參閱 使用通用 INF 檔案

This section is used to create an override configuration, which overrides the hardware resource requirements that a Plug and Play device's bus driver reports.

DefaultInstall Section
An INF file's DefaultInstall section will be accessed if a user selects the "Install" menu item after selecting and holding (or right-clicking) on the INF file name.

DefaultInstall.Services Section
本節與 INF DDInstall.Services 區段相同,且與 INF DefaultInstall 區段相關聯

Strings Section
This section is required in every INF file to define each %strkey% token specified in the INF. By convention, the Strings section (or sections if the INF provides a set of locale-specific Strings sections) appears last in all system-supplied INF files for ease of maintenance and localization.

Some sections listed here, especially those with Install in their names, can contain directives that reference additional INF-writer-defined sections. 每個指示詞都會在安裝程序期間,在適當類型 INF 寫入器定義的區段下所列的專案上執行特定作業。

上一個清單中任何特定區段的有效專案和指示詞集合是區段特定的,並顯示在這些區段之參考的正式語法中。 此外,如需最常使用指示詞的摘要,請參閱 INF 指示 詞摘要。