I've successfully obtained an IPropertyBag for the view state of a folder. I obtained it using SHGetViewStatePropertyBag, and I've confirmed that the bag is valid by checking some property values.
What I'd like to do now is persist the property bag to disk as a blob, if possible. I've been running QueryInterface on the bag, and I haven't been able to obtain any helpful interfaces. Unfortunately, it appears that the property bag doesn't support an IPersistStream interface. And I haven't been able to successfully query the IPersistPropertyBag interface either.
Is there a trick to getting some sort of persist interface for a property bag? Or do the properties essentially have to be saved individually, in an ad hoc manner? Thanks in advance for any guidance.