IStream_Copy function (shlwapi.h)

Copies a stream to another stream.

Syntax

LWSTDAPI IStream_Copy(
  [in] IStream *pstmFrom,
  [in] IStream *pstmTo,
  [in] DWORD   cb
);

Parameters

[in] pstmFrom

Type: IStream*

A pointer to the source stream.

[in] pstmTo

Type: IStream*

A pointer to the destination stream.

[in] cb

Type: DWORD

The number of bytes to copy from the source stream.

Return value

Type: HRESULT

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

Requirements

Requirement Value
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