次の方法で共有


CBaseFilter::GetPin (Compact 2013)

3/26/2014

Retrieves a CBasePin object on the filter.

Syntax

virtual CBasePin* GetPin(
  int n
) PURE;

Parameters

  • n
    Number of the specified pin.

Return Value

Returns a pointer to the pin specified by the n parameter.

Remarks

Override this member function to return a pointer to the nth pin on this filter.

CBaseFilter adds a reference to it, when necessary, before passing it to any other object.

This member function is called by the base class CEnumPins::Next member function to retrieve pins for the IEnumPins interface, which is used by the filter graph manager.

Requirements

Header

dshow.h,
Streams.h

Library

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

See Also

Reference

CBaseFilter Class