INF 文件处理函数提供包括以下内容的安装和安装功能:
打开和关闭 INF 文件。
检索有关 INF 文件的信息。
检索有关复制作的源文件和目标目录的信息。
执行 INF 文件节中指定的安装作。
下表列出了用于处理 INF 文件的函数。 有关详细的函数说明,请参阅 Microsoft Windows SDK 文档。
| Function | Description |
|---|---|
在指定的 INF 文件中执行指定的节。 |
|
释放资源并关闭 INF 句柄。 |
|
Stages a driver package in the Driver Store. |
|
复制文件,并在必要时将其解压缩。 |
|
查找指向 INF 文件节中第一行的指针;如果指定了键,则查找与键匹配的第一行。 |
|
返回指向 INF 文件部分中下一行的指针。 |
|
返回指向 INF 文件节中下一行的指针;如果指定了键,则返回与键匹配的下一行。 |
|
从指定行中的 INF 文件中的字段中检索二进制数据。 |
|
返回行中的字段数。 |
|
从 INF 文件中检索文件压缩信息。 |
|
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. |
|
返回指定目录中 INF 文件的列表。 |
|
返回有关 INF 文件的信息。 |
|
获取 INF 文件中指定行中指定字段的整数值。 |
|
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. |
|
返回指向与指定节中的指定索引值关联的行的指针。 |
|
返回指定节中的行数。 |
|
从 INF 文件中检索指定行的内容。 |
|
返回多个字符串,从行中的指定字段开始。 |
|
返回 INF 文件中列出的源文件的位置。 |
|
返回在 INF 文件的指定节中列出的指定文件或一组文件的大小。 |
|
检索源的路径、标记文件或说明。 |
|
从指定行中的 INF 文件中的字段中检索字符串数据。 |
|
确定指定 INF 文件节中列出的文件的目标路径。 |
|
将指定的文件安装到特定的目标目录中。 |
|
将指定的文件安装到特定的目标目录中。 如果文件的现有版本正在使用,则会推迟安装。 |
|
将指定 INF 文件节中的文件排入队列,以便进行复制。 (Same as SetupQueueCopySection.) |
|
Performs the directives specified in an INF DDInstall section. |
|
Performs service installation and deletion operations as specified in an INF DDInstall.Services section. |
|
打开 INF 文件并将其追加到现有的 INF 句柄。 |
|
打开 INF 文件并返回一个句柄。 |
|
打开主 INF 文件,其中包含作系统默认安装中包含的文件的文件和布局信息。 |
|
返回指定 INF 文件构成 INF 文件之一的名称。 |
|
返回指定 INF 文件的一个构成 INF 文件的版本号。 |
|
将目录 ID (DIRID) 分配给指定的目录。 |
|
Uninstalls a specified INF file, and deletes the associated .pnf and .cat files, if they exist. |
|
验证数字签名的 INF 文件是否已修改。 (Windows XP 及更高版本)。 |