CSource::FindPinNumber

 
Microsoft DirectShow 9.0

CSource::FindPinNumber

The FindPinNumber method retrieves the number of a specified pin on the filter.

Syntax

  int FindPinNumber(
    IPin *iPin
);

Parameters

iPin

Pointer to the pin's IPin interface.

Return Value

Returns the pin number, or –1 if the pin is not found on this filter. The first pin is numbered zero.

Requirements

**  Header:** Declared in Source.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also