The SetupGetFieldCount function retrieves the number of fields in the specified line in an INF file.
DWORD SetupGetFieldCount(
  PINFCONTEXT Context  //specifies the line to count fields in
);
 This function returns the number of fields on the line. If Context is invalid, 0 is returned. To get extended error information, call GetLastError.
  Windows NT:  Use version 4.0 and later.
  Windows:  Use Windows 95 and later.
  Windows CE:  Unsupported.
  Header: Declared in setupapi.h.
  Import Library: Link with setupapi.lib.
Overview, Functions, SetupGetLineCount