INF 文件处理函数

INF 文件处理函数提供包括以下内容的安装和安装功能:

  • 打开和关闭 INF 文件。

  • 检索有关 INF 文件的信息。

  • 检索有关复制作的源文件和目标目录的信息。

  • 执行 INF 文件节中指定的安装作。

下表列出了用于处理 INF 文件的函数。 有关详细的函数说明,请参阅 Microsoft Windows SDK 文档。

Function Description

InstallHinfSection

在指定的 INF 文件中执行指定的节。

SetupCloseInfFile

释放资源并关闭 INF 句柄。

SetupCopyOEMInf

Stages a driver package in the Driver Store.

SetupDecompressOrCopyFile

复制文件,并在必要时将其解压缩。

SetupFindFirstLine

查找指向 INF 文件节中第一行的指针;如果指定了键,则查找与键匹配的第一行。

SetupFindNextLine

返回指向 INF 文件部分中下一行的指针。

SetupFindNextMatchLine

返回指向 INF 文件节中下一行的指针;如果指定了键,则返回与键匹配的下一行。

SetupGetBinaryField

从指定行中的 INF 文件中的字段中检索二进制数据。

SetupGetFieldCount

返回行中的字段数。

SetupGetFileCompressionInfo

从 INF 文件中检索文件压缩信息。

SetupGetInfDriverStoreLocation

Retrieves the fully qualified file name (directory path and file name) of an INF file in the Driver Store that corresponds to a specified INF file in the system INF file directory or a specified INF file in the driver store.

SetupGetInfFileList

返回指定目录中 INF 文件的列表。

SetupGetInfInformation

返回有关 INF 文件的信息。

SetupGetIntField

获取 INF 文件中指定行中指定字段的整数值。

SetupGetInfPublishedName

Retrieves the fully qualified name (directory path and file name) of an INF file in the system INF file directory that corresponds to a specified INF file in the system INF file directory or a specified INF file in the Driver Store.

SetupGetLineByIndex

返回指向与指定节中的指定索引值关联的行的指针。

SetupGetLineCount

返回指定节中的行数。

SetupGetLineText

从 INF 文件中检索指定行的内容。

SetupGetMultiSzField

返回多个字符串,从行中的指定字段开始。

SetupGetSourceFileLocation

返回 INF 文件中列出的源文件的位置。

SetupGetSourceFileSize

返回在 INF 文件的指定节中列出的指定文件或一组文件的大小。

SetupGetSourceInfo

检索源的路径、标记文件或说明。

SetupGetStringField

从指定行中的 INF 文件中的字段中检索字符串数据。

SetupGetTargetPath

确定指定 INF 文件节中列出的文件的目标路径。

SetupInstallFile

将指定的文件安装到特定的目标目录中。

SetupInstallFileEx

将指定的文件安装到特定的目标目录中。 如果文件的现有版本正在使用,则会推迟安装。

SetupInstallFilesFromInfSection

将指定 INF 文件节中的文件排入队列,以便进行复制。 (Same as SetupQueueCopySection.)

SetupInstallFromInfSection

Performs the directives specified in an INF DDInstall section.

SetupInstallServicesFromInfSection

Performs service installation and deletion operations as specified in an INF DDInstall.Services section.

SetupOpenAppendInfFile

打开 INF 文件并将其追加到现有的 INF 句柄。

SetupOpenInfFile

打开 INF 文件并返回一个句柄。

SetupOpenMasterInf

打开主 INF 文件,其中包含作系统默认安装中包含的文件的文件和布局信息。

SetupQueryInfFileInformation

返回指定 INF 文件构成 INF 文件之一的名称。

SetupQueryInfVersionInformation

返回指定 INF 文件的一个构成 INF 文件的版本号。

SetupSetDirectoryId

将目录 ID (DIRID) 分配给指定的目录。

SetupUninstallOEMInf

Uninstalls a specified INF file, and deletes the associated .pnf and .cat files, if they exist.

SetupVerifyInfFile

验证数字签名的 INF 文件是否已修改。 (Windows XP 及更高版本)。