MsiRecordGetFieldCount function

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

Syntax


unsigned int MsiRecordGetFieldCount(
  _In_  MSIHANDLE hRecord
);

Parameters

hRecord [in]

Handle to a record.

Return value

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

If the function is given an invalid or inactive handle, it returns -1 or 0xFFFFFFFF.

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

Version

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. Windows Installer on Windows Server 2003 or Windows XP

Header

Msiquery.h

Library

Msi.lib

DLL

Msi.dll

See also

Record Processing Functions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft