Microsoft Windows CE 3.0  

CBasePin::CheckMediaType

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This member function is used to verify whether a media type is supported on a pin.

virtual HRESULT CheckMediaType(
const CMediaType *
pmt
) PURE;

Parameters

pmt
Pointer to a media type object containing the proposed media type.

Return Values

The overriding member function should return S_OK if the proposed media type is accepted; otherwise, it should return an HRESULTfailure value, such as S_FALSE.

Remarks

This member function is typically called before calling the CBasePin::SetMediaTypemember function. It is also called from several other member functions, including CBasePin::ReceiveConnectionand CBasePin::QueryAccept.