Share via


IWMCodecStrings::GetName

banner art

Retrieves the name of a codec.

Syntax

HRESULT GetName(DMO_MEDIA_TYPE*pmt,ULONGcchLength,WCHAR*szName,ULONG*pcchLength);

Parameters

pmt

[in]  Pointer to the output media type. If NULL, the codec will use the media type that is currently set.

cchLength

[in]  Size of szName buffer in wide characters.

szName

[out]  Address of the wide-character buffer that receives the name. If NULL, pcchLength receives the required length.

pcchLength

[out]  Pointer to the required buffer length in wide characters, including the NULL terminating character.

Return Values

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.

Requirements

Client: Requires Windows Vista or Windows XP.

Header: Include wmcodecdsp.h.

See Also