The Read 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 );
A pointer to the buffer which the stream data is read into.
The number of bytes of data to read from the stream object.
A pointer to a ULONG variable that receives the actual number of bytes read from the stream object.
This method can return one of these values.
This method reads bytes from this stream object into memory. The stream object must be opened in STGM_READ mode. This method adjusts the seek pointer by the actual number of bytes read.
The number of bytes actually read is also returned in the pcbRead parameter.
The application should handle both a returned error and S_OK return values on end-of-stream read operations.
|Minimum supported client||Windows 2000 Professional [desktop apps | UWP apps]|
|Minimum supported server||Windows 2000 Server [desktop apps | UWP apps]|