Microsoft Windows CE 3.0  

Override the CheckInputType Member Function

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.

During the pin connection, the CTransformInputPin::CheckMediaTypemember function of the input pin is called to determine whether the proposed media type is acceptable. The CTransformInputPin::CheckMediaTypemember function is implemented to call the CheckInputTypemember function of the derived filter class with the media type. You must implement this to accommodate the media types your filter can handle. The following code sample outlines part of the CGargle::CheckInputTypemember function, which rejects any media type but MEDIATYPE_Audio.

HRESULT CGargle::CheckInputType(const CMediaType
*pmt) { ... // Reject non-Audio type if (pmt->majortype !=
MEDIATYPE_Audio) { return E_INVALIDARG; }


 Last updated on Tuesday, May 18, 2004

© 2004 Microsoft Corporation. All rights reserved.