IStream_ReadStr function

Reads from a stream and writes into a string.

Syntax

LWSTDAPI IStream_ReadStr(
  IStream *pstm,
  PWSTR   *ppsz
);

Parameters

pstm

Type: IStream*

A pointer to the stream from which to read.

ppsz

Type: PWSTR*

A pointer to the null-terminated, Unicode string into which the stream is written.

Return Value

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shlwapi.h
DLL Shlwapi.dll