What does HRESULT 0xC00D36E6 (MF_E_ATTRIBUTENOTFOUND) mean?

 
Previous Next
MF_E_INVALID_POSITION MF_E_PROPERTY_TYPE_NOT_ALLOWED

MF_E_ATTRIBUTENOTFOUND

MF_E_ATTRIBUTENOTFOUND is the normal missing-key result for IMFAttributes. Media Foundation attributes are GUID/value pairs; each store contains only the attributes that are meaningful or have been set for that particular object.

Do not confuse an absent attribute with a zero value

  • Log the GUID key and the interface or object whose attribute store is queried.
  • Use the documented expected type for that key. GetItemType itself returns this HRESULT when the key is absent.
  • For optional attributes, choose the documented default or fallback instead of inserting a guessed value.

Attribute presence can depend on object type, negotiated media type, source format, or creation attributes. If code enumerates attributes, use LockStore, GetCount, and GetItemByIndex as documented so another thread cannot add or delete entries during enumeration. Wine's IMFAttributes IDL confirms that all typed getters share the same GUID-keyed store model.

Microsoft: IMFAttributes::GetItemType · Microsoft: Attributes in Media Foundation · Wine: IMFAttributes definition


Looking for a different code? Search another status or error code.