Share via


IAMCrossbar::get_PinCounts

 
Microsoft DirectShow 9.0

IAMCrossbar::get_PinCounts

The get_PinCounts method retrieves the number of input and output pins on the crossbar filter.

Syntax

  HRESULT get_PinCounts(
  long *OutputPinCount,
  long *InputPinCount
);

Parameters

OutputPinCount

[out]  Pointer to variable that receives the number of output pins.

InputPinCount

[out]  Pointer to variable that receives the number of input pins.

Return Values

Returns an HRESULT value. Possible values include the following.

Return code Description
S_OK Success.
E_POINTER NULL pointer argument.

Remarks

The other IAMCrossbar methods take parameters that specify pins by index number. For these methods, output pins and input pins are both indexed from zero. Use the get_PinCounts method to determine the upper bounds for each.

Requirements

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

Library: Use Strmiids.lib.

See Also