SetupFindNextLine function (setupapi.h)

[This function is available for use in the operating systems indicated in the Requirements section. It may be altered or unavailable in subsequent versions. SetupAPI should no longer be used for installing applications. Instead, use the Windows Installer for developing application installers. SetupAPI continues to be used for installing device drivers.]

The SetupFindNextLine returns the location of the next line in an INF file section relative to ContextIn.Line.

Syntax

WINSETUPAPI BOOL SetupFindNextLine(
  [in]  PINFCONTEXT ContextIn,
  [out] PINFCONTEXT ContextOut
);

Parameters

[in] ContextIn

Pointer to the INF file context retrieved by a call to the SetupFindFirstLine function.

[out] ContextOut

Pointer to a variable in which this function returns the context of the found line. ContextOut can point to ContextIn if the caller wishes.

Return value

If this function finds the next line, the return value is a nonzero value. Otherwise, the return value is zero. To get extended error information, call GetLastError.

Remarks

If ContextIn.Line references multiple INF files that have been appended together using SetupOpenAppendInfFile, this function searches across the specified section in all files referenced by the HINF to locate the next line.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header setupapi.h
Library Setupapi.lib
DLL Setupapi.dll
API set ext-ms-win-setupapi-inf-l1-1-0 (introduced in Windows 8)

See also

Functions

Overview

SetupFindFirstLine

SetupFindNextMatchLine

SetupGetLineByIndex