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 |
|
|
DLL |
|
Show: