Reads data from a stream using IStream::Read.
_StreamRead(ByRef $oStream, $iSize, ByRef $pMemory, ByRef $iReadSize)
| $oStream | IStream COM object. |
| $iSize | Number of bytes to read. |
| $pMemory | [out] Pointer to the allocated read buffer. |
| $iReadSize | [out] Number of bytes actually read. |
| Success: | 1 |
| Failure: | 0, sets @error to: 1 - Invalid stream object. 2 - Failed to allocate memory. 3 - COM error (HRESULT in @extended). |