SetupGetLineByIndex  289TM54 

[New - Windows NT]

The SetupGetLineByIndex function locates a line by its index value in the specified section in the INF file.

BOOL SetupGetLineByIndex(

    HINF InfHandle,

// handle to the INF file

    PCTSTR Section,

// section that contains the line

    DWORD Index,

// the index of the line to find

    PINFCONTEXT Context

// context that specifies the found line

   );

 

 

Parameters

InfHandle

Handle of the INF file.

Section

Pointer to a null-terminated string specifying the section of the INF file to search.

Index

Specifies the index of the line to be located. The total number of lines in a particular section can be found with a call to SetupGetLineCount15GM4WX.

Context

Points to a caller-supplied variable in which the function returns the context information for the found line.

 

Return Values

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE.

Remarks

If InfHandle references multiple INF files that have been appended together using SetupOpenAppendInfFile132.P6I, this function searches across the specified section in all files referenced by the HINF to locate the indexed line.

See Also

SetupFindFirstLine, SetupFindNextLine, SetupFindNextMatchLine