Creates a new stream object with its own seek pointer that references the same bytes as the original stream.
HRESULT Clone(
IStream ** ppstm //Points to location for pointer to the new
// stream object
);
This method creates a new stream object for accessing the same bytes but using a separate seek pointer. The new stream object sees the same data as the source stream object. Changes written to one object are immediately visible in the other. Range locking is shared between the stream objects.
The initial setting of the seek pointer in the cloned stream instance is the same as the current setting of the seek pointer in the original stream at the time of the clone operation.
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in objidl.h.
IStream - Compound File Implementation, IStream::CopyTo