IAMCrossbar::CanRoute

 
Microsoft DirectShow 9.0

IAMCrossbar::CanRoute

The CanRoute method queries whether a specified input pin can be routed to a specified output pin.

Syntax

  HRESULT CanRoute (
  long OutputPinIndex,
  long InputPinIndex
);

Parameters

OutputPinIndex

[in]  Specifes the index of the output pin.

InputPinIndex

[in]  Specifies the index of input pin.

Return Values

Returns an HRESULT values. Possible values include the following.

Return code Description
S_OK These two pins can be routed.
S_FALSE These two pins cannot be routed.

Remarks

To route the pins, call the IAMCrossbar::Route method. Output pins and input pins are both indexed from zero. To determine the number of output and input pins, call the IAMCrossbar::get_PinCounts method.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also