2.4.1.1 INF File Processing Functions

The INF file processing functions provide setup and installation functionality that includes:

The INF file processing functions are summarized in the following list. For detailed information on these functions, see the Win32 SDK documentation.

SetupCloseInfFile

Frees resources and closes the INF handle.

SetupDecompressOrCopyFile

Copies a file and, if necessary, decompresses it.

SetupFindFirstLine

Finds the first line in a section of an INF file or, if a key is specified, the first line that matches that key.

SetupFindNextLine

Returns the next line in a section relative to the specified HINFLINE.

SetupFindNextMatchLine

Returns the next line in a section relative to the specified HINFLINE that matches a specified key.

SetupGetBinaryField

Retrieves data from a line whose fields are in binary format.

SetupGetFieldCount

Returns number of fields in a line.

SetupGetFileCompressionInfo

Retrieves file compression information from an INF file.

SetupGetInfFileList

Gets a list of the types of INF files in a specified directory.

SetupGetInfInformation

Returns information about an INF file.

SetupGetIntField

Returns the specified integer field of the line in the INF file.

SetupGetLineByIndex

Returns an HINFLINE for the line at a specified index in the specified section.

SetupGetLineCount

Returns the number of lines in the specified section.

SetupGetLineText

Retrieves the content of a specified line from an INF file.

SetupGetMultiSzField

Returns the list of strings starting at the specified field of a line in an INF file.

SetupGetSourceFileLocation

Gets the source disk ordinal and path (relative to source root) where the source file is located.

SetupGetSourceFileSize

Gets the file size for an individual source file or a Copy Files section of an INF file.

SetupGetSourceInfo

Retrieves the path, tag file, or description for a source.

SetupGetStringField

Returns the specified string field of a line in an INF file.

SetupGetTargetPath

Gets the target path for a Copy Files section in an INF file.

SetupInstallFile

Installs a file.

SetupInstallFileEx

Installs a file and returns a variable indicating whether or not the file was in use.

SetupInstallFilesFromInfSection

Queues all the files in an INF file Copy Files section.

SetupInstallFromInfSection

Performs the directives specified in an INF file Install section.

SetupInstallServicesFromInfSection

Performs service installation and deletion operations as specified in a Service Install section of an INF file.

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 shipped with Windows NT. (Windows NT only.)

SetupQueryInfFileInformation

Queries an INF information structure about its associated INF filename(s).

SetupQueryInfVersionInformation

Queries an INF information structure for version information on one of its constituent INF files.

SetupSetDirectoryId

Associates a directory ID (DIRID) with a particular directory.