Windows Media Audio and Video Codec and DSP APIs IWMCodecStrings::GetName
.gif)
| Previous | Next |
IWMCodecStrings::GetName
Retrieves the name of a codec.
Syntax
HRESULT GetName( DMO_MEDIA_TYPE* pmt, ULONG cchLength, 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
Header: wmcodecdsp.h
Library: Implemented by wmvdmoe2.dll, wmvdmod.dll, wmadmoe.d, wmspdmoe.dll, and wmsdmoe2.dll
See Also
| Previous | Next |