IStream_ReadStrLong

Go to Home Page

Reads a string from a stream

Syntax

HRESULT WINAPI IStream_ReadStrLong (
    IStream* pStream,
    LPWSTR* ppwszString
)

Parameters

pStream
The IStream or ISequentalStream to read from
ppwszString
A pointer to a pointer that will receive the string. The returned string must be freed with CoTaskMemFree

Return Value

S_OK on success, standard COM error otherwise

Remarks

The function first reads a UINT from the stream, then reads that many WCHARs as the content of the string.

This function is also known as _IStream_ReadStrLong@8.