Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IStream::CopyTo Method (IStream^, Int64, IntPtr, IntPtr)

 

Copies a specified number of bytes from the current seek pointer in the stream to the current seek pointer in another stream.

Namespace:   System.Runtime.InteropServices.ComTypes
Assembly:  mscorlib (in mscorlib.dll)

void CopyTo(
	IStream^ pstm,
	long long cb,
	IntPtr pcbRead,
	IntPtr pcbWritten
)

Parameters

pstm
Type: System.Runtime.InteropServices.ComTypes::IStream^

A reference to the destination stream.

cb
Type: System::Int64

The number of bytes to copy from the source stream.

pcbRead
Type: System::IntPtr

On successful return, contains the actual number of bytes read from the source.

pcbWritten
Type: System::IntPtr

On successful return, contains the actual number of bytes written to the destination.

For more information, see the existing documentation for IStream::CopyTo in the MSDN Library.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2017 Microsoft