MsiRecordDataSize

[This is preliminary documentation and subject to change.]

The MsiRecordDataSize function returns the length of a record field.

unsigned int MsiRecordDataSize(
  MSIHANDLE hRecord,    // record handle
  unsigned int iField   // record field
);
 

Parameters

hRecord
Handle to the record.
iField
Specifies a field of the record.

Return Values

The MsiRecordDataSize function returns 0 if the field is NULL, non-existent, 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 terminator).

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

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