IMStream::Read

The IMStream::Read method reads bytes into a portion of a byte array.

The maximum number of bytes that the method reads is specified by the lsize parameter.

Quick info

HRESULT Read(long lSize, VARIANT *pvData) 

Parameters

lSize
[in] - number of bytes to read
pvData
[out] - buffer to receive bytes. The method reads as many bytes as will fit in the array. The actual number of bytes read is returned.

Return values

The following value is returned when this method is called:
S_OK
Success status