MsiRecordGetFieldCount function

The MsiRecordGetFieldCount function returns the number of fields in a record.

Syntax

UINT MsiRecordGetFieldCount(
  MSIHANDLE hRecord
);

Parameters

hRecord

Handle to a record.

Return Value

If the function succeeds, the return value is the number of fields in the record.

Remarks

The count returned by the MsiRecordGetFieldCount parameter does not include field 0. Read access to fields beyond this count returns null values. Write access fails.

Requirements

   
Minimum supported client Windows Installer 5.0 on Windows Server 2012, Windows 8, Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista.
Target Platform Windows
Header msiquery.h
Library Msi.lib
DLL Msi.dll

See Also

Record Processing Functions