Platform SDK: Exchange Server

HrMAPIWriteStreamToMemory

The HrMAPIWriteStreamToMemory function reads a number of bytes from a stream and saves it to a block of memory.

Quick Info

Header file: EDKMAPI.H
Library: EDKMAPI.LIB

HRESULT HrMAPIWriteStreamToMemory(
  LPSTREAM lpStream,    
  ULONG cBytes,         
  LPBYTE lpbBytes,      
  ULONG * lpcBytesRead  
);
 

Parameters

lpStream
Input parameter. Points to an open Win32 IStream interface.
cBytes
Input parameter. Number of bytes in memory.
lpbBytes
Input parameter. Points to memory.
lpcBytesRead
Output parameter. Number of bytes read from stream.

Return Values

See Return Values.

Remarks

For more information on this function, see the HrMAPIWriteStreamToMemory function in EDKMAPI.C under the EDKMAPI code sample in the Code Samples folder.

See Also

HrMAPISetStreamSize, HrMAPIWriteAttachmentToFile, HrMAPIWriteFileToStream, HrMAPIWriteMemoryToStream, HrMAPIWriteStreamToFile