Partager via


CPersistStream::Save

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method saves the filter's data to the given stream.

Syntax

HRESULT Save(
  LPSTREAM pStm,
  BOOL     fClearDirty
);

Parameters

  • pStm
    Pointer to the stream to which data is to be saved.
  • fClearDirty
    Flag that indicates whether to reset the current stream's dirty flag; TRUE means to reset it. (When the method is called as part of a Save operation, the value is typically TRUE; when called as part of a Save As operation, the value is typically FALSE.)

Return Value

Returns an HRESULT value.

Remarks

This member function implements the IPersistStream::Save method. It calls WriteInt with the software version, calls CPersistStream::WriteToStream with the stream in pStm, and resets the CPersistStream class property mPS_fDirty.

Requirements

Windows Embedded CE Windows CE 2.12 and later
Windows Mobile Windows Mobile Version 5.0 and later
Note Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment, Version 2.12 requires DXPAK 1.0 or later

See Also

Reference

CPersistStream Class
WriteInt
CPersistStream::WriteToStream
CPersistStream Class

Other Resources

IPersistStream::Save