MsiRecordDataSize function (msiquery.h)

The MsiRecordDataSize function returns the length of a record field. The count does not include the terminating null character.

Syntax

UINT MsiRecordDataSize(
  [in] MSIHANDLE hRecord,
  [in] UINT      iField
);

Parameters

[in] hRecord

Handle to the record.

[in] iField

Specifies a field of the record.

Return value

The MsiRecordDataSize function returns 0 if the field is null, nonexistent, or an internal object pointer. The function also returns 0 if the handle is not a valid record handle.

If the data is in integer format, the function returns sizeof(int).

If the data is in string format, the function returns the character count (not including the null character).

If the data is in stream format, the function returns the byte count.

Requirements

Requirement Value
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. Windows Installer on Windows Server 2003 or Windows XP
Target Platform Windows
Header msiquery.h
Library Msi.lib
DLL Msi.dll

See also

Record Processing Functions