Share via


IStream::Read

This method reads a specified number of bytes from the stream object into memory, starting at the current seek pointer.

HRESULT Read( 
void *pv, 
ULONG cb, 
ULONG *pcbRead 
);

Parameters

  • pv
    [out] Pointer to the buffer into which the stream data is read. If an error occurs, this value is NULL.
  • cb
    [in] Specifies the number of bytes of data to attempt to read from the stream object.
  • pcbRead
    [out] Pointer to a ULONG variable that receives the actual number of bytes read from the stream object. You can set this pointer to NULL to indicate that you are not interested in this value. In this case, this method does not provide the actual number of bytes read.

Requirements

Runs On Versions Defined in Include Link to
Windows CE OS 2.0 and later Objidl.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.