SetupGetFieldCount 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 SetupGetFieldCount function retrieves the number of fields in the specified line in an INF file.

Syntax

WINSETUPAPI DWORD SetupGetFieldCount(
  [in] PINFCONTEXT Context
);

Parameters

[in] Context

Pointer to the context for a line in an INF file.

Return value

This function returns the number of fields on the line. If Context is invalid, 0 is returned. To get extended error information, call GetLastError.

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-1 (introduced in Windows 10, version 10.0.14393)

See also

Functions

Overview

SetupGetLineCount