MFSetAttributeRatio Function
Sets a ratio as a 64-bit attribute value.
Syntax
HRESULT MFSetAttributeRatio(
__in IMFAttributes *pAttributes,
__in REFGUID guidKey,
__in UINT32 unNumerator,
__in UINT32 unDenominator
);
Parameter
pAttributes [in]
A pointer to the IMFAttributes interface of the attribute store.guidKey [in]
A GUID that identifies the value to set. If this key already exists, the function overwrites the old value.unNumerator [in]
The numerator of the ratio.unDenominator [in]
The denominator of the ratio.
Rückgabewert
Ist Funktion erfolgreich, wird "S_OK" zurückgegeben. Andernfalls wird ein HRESULT-Fehlercode zurückgegeben.
Hinweise
Some attributes specify a ratio as a packed UINT64 value. This function packs the numerator and denominator into a single UINT64 value.
Anforderungen
Mindestens unterstützter Client |
Windows Vista |
Mindestens unterstützter Server |
Windows Server 2008 |
Header |
Mfapi.h |