Share via


CBasePin::QueryAccept (Compact 2013)

3/26/2014

Determines whether the pin accepts the format type.

Syntax

HRESULT QueryAccept(
  const AM_MEDIA_TYPE* pmt
);

Parameters

  • pmt
    Pointer to a proposed media type.

Return Value

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

Remarks

This member function implements the IPin::QueryAccept method.

It calls the pure virtual CBasePin::CheckMediaType member function, which the derived class must implement, and maps returned codes from CheckMediaType other than S_OK to S_FALSE.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CBasePin Class