SetupApi关于INF文件处理的函数
2021-11-19
185
0
INF文件处理功能提供安装功能,包括以下内容:
- 打开和关闭INF文件。
- 检索有关INF文件的信息。
- 检索有关复制操作的源文件和目标目录的信息。
- 执行INF文件节中指定的安装操作。
Function | Description |
---|---|
InstallHinfSection | Executes a specified section in a specified INF file. |
SetupCloseInfFile | Frees resources and closes the INF handle. |
SetupCopyOEMInf | Copies a file into %SystemRoot%\Inf. |
SetupDecompressOrCopyFile | Copies a file and, if necessary, decompresses it. |
SetupFindFirstLine | Finds a pointer to the first line in a section of an INF file or, if a key is specified, the first line that matches the key. |
SetupFindNextLine | Returns a pointer to the next line in an INF file section. |
SetupFindNextMatchLine | Returns a pointer to the next line in an INF file section or, if a key is specified, the next line that matches the key. |
SetupGetBinaryField | Retrieves binary data from a field in a specified line, in an INF file. |
SetupGetFieldCount | Returns the number of fields in a line. |
SetupGetFileCompressionInfo | Retrieves file compression information from an INF file. |
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 | Returns a list of the INF files in a specified directory. |
SetupGetInfInformation | Returns information about an INF file. |
SetupGetIntField | Obtains the integer value of a specified field in a specified line, in an INF file. |
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 | Returns a pointer to the line associated with a specified index value in a specified section. |
SetupGetLineCount | Returns the number of lines in the specified section. |
SetupGetLineText | Retrieves the contents of a specified line from an INF file. |
SetupGetMultiSzField | Returns multiple strings, starting at a specified field in a line. |
SetupGetSourceFileLocation | Returns the location of a source file that is listed in an INF file. |
SetupGetSourceFileSize | Returns the size of a specified file or a set of files that are listed in a specified section of an INF file. |
SetupGetSourceInfo | Retrieves the path, tag file, or description for a source. |
SetupGetStringField | Retrieves string data from a field in a specified line, in an INF file. |
SetupGetTargetPath | Determines the target path for the files that are listed in a specified INF file section. |
SetupInstallFile | Installs a specified file into a specific target directory. |
SetupInstallFileEx | Installs a specified file into a specific target directory. The installation is postponed if an existing version of the file is in use. |
SetupInstallFilesFromInfSection | Queues the files in a specified INF file section for copying. (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 | Opens an INF file and appends it to an existing INF handle. |
SetupOpenInfFile | Opens an INF file and returns a handle to it. |
SetupOpenMasterInf | Opens the master INF file that contains file and layout information for files that were included with the default installation of the operating system. |
SetupQueryInfFileInformation | Returns the name of one of the constituent INF files of a specified INF file. |
SetupQueryInfVersionInformation | Returns the version number of one of the constituent INF files of a specified INF file. |
SetupSetDirectoryId | Assigns a directory ID (DIRID) to a specified directory. |
SetupUninstallOEMInf | Uninstalls a specified INF file, and deletes the associated .pnf and .cat files, if they exist. |
SetupVerifyInfFile | Verifies that a digitally-signed INF file has not been modified. (Windows XP and later.) |