Platform SDK: MAPI |
When opening an OLE object attachment, use the IStreamDocfile interface rather than IStream or IStorage. IStreamDocfile provides direct access to the object using structured storage, eliminating the need to perform a copy operation and reducing overhead. IStreamDocfile is a specific implementation of IStream with the content of the stream guaranteed to be formatted as structured storage. IStreamDocfile is implemented by message store providers.