[This is preliminary documentation and subject to change.]
The MsiRecordReadStream function reads bytes from a record stream field into a buffer.
UINT MsiRecordReadStream(
MSIHANDLE hRecord, // record handle
unsigned int iField, // field of record
char *szDataBuf, // buffer to receive bytes from stream
DWORD *pchDataBuf // in/out buffer count
);
When using the MsiRecordReadStream function, you must set the pchDataBuf parameter to the requested byte count to read. The number of bytes transferred is returned through the pchDataBuf parameter. If no more bytes are available, ERROR_SUCCESS is still returned.
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.
Database Access Reference, Record Processing Functions