共用方式為


IBaseFilter::EnumPins

 
Microsoft DirectShow 9.0

IBaseFilter::EnumPins

The EnumPins method enumerates the pins on this filter.

Syntax

  HRESULT EnumPins(
  IEnumPins **ppEnum
);

Parameters

ppEnum

[out] Address of a variable that receives a pointer to the IEnumPins interface.

Return Values

Returns an HRESULT value. Possible values include the following.

Return code Description
S_OK Success
E_OUTOFMEMORY Insufficient memory
E_POINTER Null pointer argument

Remarks

This method returns an enumerator that supports the IEnumPins interface, which works like a standard COM enumerator. For more information, see Enumerating Pins.

If the method succeeds, the IEnumPins interface has an outstanding reference count. Be sure to release the interface when you are done.

Requirements

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

Library: Use Strmiids.lib.

See Also