CBasePin.QueryInternalConnections method

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The QueryInternalConnections method retrieves the pins that are connected internally to this pin (within the filter). This method implements the IPin::QueryInternalConnections method.

Syntax

HRESULT QueryInternalConnections(
   IPin  *apPin,
   ULONG *nPin
);

Parameters

apPin

Address of an array of IPin pointers.

nPin

On input, specifies the size of the array. When the method returns, the value is set to the number of pointers returned in the array.

Return value

Returns one of the HRESULT values shown in the following table.

Return code Description
S_FALSE
Insufficient array size.
S_OK
Success.
E_FAIL
Failure.
E_NOTIMPL
Not implemented.

Remarks

On some filters, input pins correspond to particular output pins. For each pin, this method fills an array with pointers to the corresponding pins. If every input pin provides data for every output pin, return E_NOTIMPL.

Requirements

Requirement Value
Header
Amfilter.h (include Streams.h)
Library
Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

CBasePin Class