[This is preliminary documentation and subject to change.]
The MsiRecordGetFieldCount function returns the number of fields in a record.
unsigned int MsiRecordGetFieldCount(
MSIHANDLE hRecord // record handle
);
If the function succeeds, the return value is the number of fields in the record.
If the function fails, the return value can be the following.
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.
Windows NT: Requires version 4.0 or later. Available as a redistributable for Windows NT 4.0.
Windows: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in msiquery.h.
Import Library: Use msi.lib.
Database Access Reference, Record Processing Functions