MsiRecordDataSize Function

Windows Installer

MsiRecordDataSize Function

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

Syntax

C++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

VersionWindows Installer 5.0 on 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, Windows XP, and Windows 2000
HeaderMsiquery.h
LibraryMsi.lib
DLLMsi.dll

See Also

Record Processing Functions

Send comments about this topic to Microsoft

Build date: 8/13/2009

© 2009 Microsoft Corporation. All rights reserved.