IWMCodecStrings::GetName method (wmcodecdsp.h)

Retrieves the name of a codec.

Syntax

HRESULT GetName(
  DMO_MEDIA_TYPE *pmt,
  ULONG          cchLength,
  LPWSTR         szName,
  ULONG          *pcchLength
);

Parameters

pmt

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

cchLength

Size of szName buffer in wide characters.

szName

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

pcchLength

Pointer to the required buffer length in wide characters, including the null terminating character.

Return value

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

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header wmcodecdsp.h

See also

IWMCodecStrings Interface