HrMAPIWriteMemoryToStream

The HrMAPIWriteMemoryToStream function saves a number of bytes from a block of memory to a stream.

Quick Info

Header file: EDKMAPI.H
Library: EDKMAPI.LIB

HRESULT HrMAPIWriteMemoryToStream(
  LPSTREAM lpStream,       
  ULONG cBytes,            
  LPBYTE lpbBytes,         
  ULONG * lpcBytesWritten  
);
 

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.
lpcBytesWritten
Output parameter. Number of bytes written from stream.

Return Values

See Return Values.

Remarks

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

See Also

HrMAPISetStreamSize, HrMAPIWriteAttachmentToFile, HrMAPIWriteFileToStream, HrMAPIWriteStreamToFile, HrMAPIWriteStreamToMemory