MsiRecordDataSize function

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

Syntax


unsigned int MsiRecordDataSize(
  _In_ MSIHANDLE    hRecord,
  _In_ unsigned int iField
);

Parameters

hRecord [in]

Handle to the record.

iField [in]

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

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

 

 

Show: