Retrieves a double value associated with a key.
public:
HRESULT GetDouble(
REFGUID guidKey,
double *pfValue
)
guidKey
Type: REFGUID
[in]
GUID that identifies which value to retrieve. The attribute type must be MF_ATTRIBUTE_DOUBLE.
pfValue
Type: double *
[out]
Receives a double value. If the key is found and the data type is double, the method copies the value into this parameter. Otherwise, the original value of this parameter is not changed.
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 double. |
Refer to Media Foundation return codes.
Header: Declared in mfobjects.h (include mfidl.h).
Library: Use Mfuuid.lib.