Export (0) Print
Expand All

Opening and Closing an INF file

Before the setup functions can access information in the INF, you must open it with a call to the SetupOpenInfFile function. 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, you can use the SetupGetInfFileList function to obtain a list of INF files in a directory.

After you open an INF file, you can append additional INF files to the opened INF file by using the SetupOpenAppendInfFile function. This is functionally similar to an include statement. When subsequent setup functions reference an open INF file, they will also be able to access any information stored in the appended files.

If you do not specify an INF file during the call to the SetupOpenAppendInfFile function, SetupOpenAppendInfFile appends the file(s) specified by the LayoutFile key in the Version section of the open INF file.

When you no longer need the information in the INF file, call the SetupCloseInfFile function to release resources allocated during the call to SetupOpenAppendInfFile.

 

 

Build date: 8/19/2010

Community Additions

ADD
Show:
© 2014 Microsoft