MFGetAttributesAsBlobSize

Retrieves the size of the buffer needed for the MFGetAttributesAsBlob function.

Syntax

HRESULT MFGetAttributesAsBlobSize(
         IMFAttributes *pAttributes,
         UINT32 *pcbBufSize
)  

Parameters

pAttributes
Type: IMFAttributes *

[in]

Pointer to the IMFAttributes interface of the attribute store.

pcbBufSize
Type: UINT32 *

[out]

Receives the required size of the array, in bytes.

Return value

Type: HRESULT 

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

Return codes
Return code Description
S_OK The function succeeded.

Refer to Media Foundation return codes.

Remarks

Use this function to find the size of the array that is needed for the MFGetAttributesAsBlob function.

Requirements

Header: Declared in mfapi.h.

Library: Use mfplat.lib.