CPersistStream Class
CPersistStream is the base class for persistent properties of filters (that is, filter properties in saved graphs).
The simplest way to use CPersistStream is to:
- Arrange for your filter to inherit this class.
- Implement WriteToStream and ReadFromStream in your class. These will override the functions here, which do nothing but act as placeholders.
- Change your NonDelegatingQueryInterface to handle IPersistStream.
- Implement SizeMax to return an upper bound on the number of bytes of data you save.
If you save Unicode™ data, remember that a WCHAR is 2 bytes.
- When your data changes, call SetDirty.