Loads attributes from a stream into an attribute store.
HRESULT MFDeserializeAttributesFromStream(
IMFAttributes *pAttr,
DWORD dwOptions,
IStream *pStm
)
pAttr
Type: IMFAttributes *
Pointer to the IMFAttributes interface of the attribute store.
dwOptions
Type: DWORD
Bitwise OR of zero or more flags from the MF_ATTRIBUTE_SERIALIZE_OPTIONS enumeration.
pStm
Type: IStream *
Pointer to the IStream interface of the stream from which to read the attributes.
Type: HRESULT
The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
| S_OK | The method succeeded. |
Refer to Media Foundation return codes.
Use this function to deserialize an attribute store that was serialized with the MFSerializeAttributesToStream function.
If dwOptions contains the MF_ATTRIBUTE_SERIALIZE_UNKNOWN_BYREF flag, the function deserializes IUnknown pointers from the stream, as follows:
This function deletes any attributes that were previously stored in pAttr.
Header: Declared in mfobjects.h.
Library: Use mfplat.lib.