SetupGetLineCount  23PL_P3 

[New - Windows NT]

The SetupGetLineCount function returns the number of lines in a specified section of an INF file.

LONG SetupGetLineCount(

    HINF InfHandle,

// handle to the INF file

    PCTSTR Section

// the section in which to count lines

   );

 

 

Parameters

InfHandle

Handle of the INF file.

Section

Pointer to a null-terminated string that specifies the section in which you want to count the lines.

 

Return Values

If InfHandle references multiple INF files that have been appended together using SetupOpenAppendInfFile132.P6I, this function returns the sum of the lines in all the INF files containing the specified section. A return value of 0 specifies an empty section. If the section does not exist, the function returns -1.