The IPersistStreamInit::Save method saves an object into the specified stream and indicates whether the object should reset its dirty flag.
The seek pointer is positioned at the location in the stream at which the object should begin writing its data. The object calls the IStream::Write method to write its data.
On exit, the seek pointer must be positioned immediately past the object data. The position of the seek pointer is undefined if an error returns.
HRESULT Save(
IStream *pStm// in
BOOLfClearDirty// in
);
<pipeline.h>
<pipecomp.h>
The method returns an HRESULT value.