Retrieves the length of a byte array associated with a key.
public:
HRESULT GetBlobSize(
REFGUID guidKey,
UINT32 *pcbBlobSize
)
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.
Type: HRESULT
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| 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.
To get the byte array, call IMFAttributes::GetBlob.
Header: Declared in mfobjects.h (include mfidl.h).
Library: Use Mfuuid.lib.