Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MFGetAttributeString function

Gets a string value from an attribute store.

Syntax


HRESULT MFGetAttributeString(
  _In_  IMFAttributes *pAttributes,
  _In_  REFGUID       guidKey,
  _Out_ PWSTR         *ppsz
);

Parameters

pAttributes [in]

A pointer to the IMFAttributes interface.

guidKey [in]

A GUID that identifies which value to retrieve. The attribute type must be MF_ATTRIBUTE_STRING.

ppsz [out]

If the key is found and the value is a string type, this parameter receives a copy of the string. The caller must free the memory for the string by calling CoTaskMemFree.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This function is a wrapper for the IMFAttributes::GetAllocatedString method.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Mfapi.h

See also

Media Foundation Functions

 

 

Show:
© 2017 Microsoft