Microsoft Windows CE 3.0  

CBasePin::QueryAccept

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.

Determines whether the pin accepts the format type.

HRESULT QueryAccept(
const AM_MEDIA_TYPE *
pmt
);

Parameters

pmt
Pointer to a proposed media type.

Return Values

Returns S_TRUE if the format is accepted; otherwise, returns S_FALSE.

Remarks

This member function implements the IPin::QueryAcceptmethod. It simply calls the pure virtual CBasePin::CheckMediaTypemember function, which the derived class must implement, and maps any returned codes from CheckMediaTypeother than S_OK to S_FALSE.