MsiRecordGetFieldCount

[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
);
 

Parameters

hRecord
Handle to a record.

Return Values

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.

ERROR_INVALID_HANDLE
An invalid or inactive handle was supplied.

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.

QuickInfo

  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.

See Also

Database Access Reference, Record Processing Functions