Before the information in the INF file can be accessed, it must be opened by calling SetupOpenInfFile. This function returns a handle to the INF file.
If you do not know the name of the INF file that you need to open, SetupGetInfFileList can be used to obtain a list of all the INF files of a particular type (either legacy INF files, new INF files, or both) in a directory.
Once an INF file has been opened, additional INF files can be appended to the opened INF file by using SetupOpenAppendInfFile. When subsequent Setup functions reference an open INF file, they will also be able to access any information stored in any appended files.
If no INF file is specified during the call to SetupOpenAppendInfFile, the file specified by the LayoutFile entry in the Version section of the INF file opened during the call to SetupOpenInfFile is appended.
When the information in the INF file is no longer needed, SetupCloseInfFile should be called to release resources allocated during the call to SetupOpenInfFile.