MFPMediaItem_GetPresentationAttribute

Queries the media item for a presentation attribute.

MFPMediaItem_GetPresentationAttribute PROTO pMediaItem:DWORD, guidMFAttribute:DWORD, pvValue:DWORD

Parameters

  • pMediaItem - A pointer to the Media Item (IMFPMediaItem) object.

  • guidMFAttribute - GUID that identifies the attribute value to query.

  • pvValue - Pointer to a PROPVARIANT that receives the value.

Returns

TRUE if successful or FALSE otherwise.

Notes

Call PropVariantClear to free the memory allocated and stored in variable pointed to by the pvValue parameter.

Includelib mfuuid.lib to reference the already defined and exported property GUIDs in that library.

See Also

MFPMediaItem_GetStreamAttribute, MFPMediaItem_GetCharacteristics