Export (0) Print
Expand All
Expand Minimize

MFInitAttributesFromBlob function

Initializes the contents of an attribute store from a byte array.

Syntax


HRESULT MFInitAttributesFromBlob(
  _In_  IMFAttributes *pAttributes,
  _In_  const UINT8 *pBuf,
  _In_  UINT cbBufSize
);

Parameters

pAttributes [in]

Pointer to the IMFAttributes interface of the attribute store.

pBuf [in]

Pointer to the array that contains the initialization data.

cbBufSize [in]

Size of the pBuf array, in bytes.

Return value

The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The function succeeded.

E_INVALIDARG

The buffer is not valid.

 

Remarks

Use this function to deserialize an attribute store that was serialized with the MFGetAttributesAsBlob function.

This function deletes any attributes that were previously stored in pAttributes.

Windows Phone 8.1: This API is supported.

Requirements

Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Mfapi.h

Library

Mfplat.lib

DLL

Mfplat.dll

See also

Media Foundation Functions
Attributes and Properties

 

 

Community Additions

ADD
Show:
© 2014 Microsoft