This topic has not yet been rated - Rate this topic

IStream_Copy function

Copies a stream to another stream.

Syntax


HRESULT IStream_Copy(
  _In_  IStream *pstmFrom,
  _In_  IStream *pstmTo,
  _In_  DWORD cb
);

Parameters

pstmFrom [in]

Type: IStream*

A pointer to the source stream.

pstmTo [in]

Type: IStream*

A pointer to the destination stream.

cb [in]

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shlwapi.h

DLL

Shlwapi.dll

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Community Additions

ADD
© 2013 Microsoft. All rights reserved.