IMFAttributes::GetBlobSize Method

Retrieves the length of a byte array associated with a key.

Syntax

public:
HRESULT GetBlobSize(
         REFGUID guidKey,
         UINT32 *pcbBlobSize
)  

Parameters

guidKey
Type: REFGUID 

[in]

GUID that identifies which value to retrieve. The attribute type must be MF_ATTRIBUTE_BLOB.

pcbBlobSize
Type: UINT32 *

[out]

If the key is found and the value is a byte array, this parameter receives the size of the array, in bytes.

Return value

Type: HRESULT 

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

Return codes
Return code Description
S_OK The method succeeded.
MF_E_ATTRIBUTENOTFOUND The specified key was not found.
MF_E_INVALIDTYPE The attribute value is not a byte array.

Refer to Media Foundation return codes.

Remarks

To get the byte array, call IMFAttributes::GetBlob.

Requirements

Header: Declared in mfobjects.h (include mfidl.h).

Library: Use Mfuuid.lib.