IPersistStreamInit::Save

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.

Syntax

HRESULT Save(
IStream
*pStm// in
BOOLfClearDirty// in
);

Parameters

pStm
Pointer to the IStream interface on the stream into which the object should be saved.
fClearDirty
Indicates whether to clear the dirty flag after the save is complete. If True, the flag should be cleared. If False, the flag should be left unchanged.

Include File

<pipeline.h>
<pipecomp.h>

Return Value

The method returns an HRESULT value.


© 1997-1998 Microsoft Corporation. All rights reserved.