Compartilhar via


CBaseFilter::EnumPins (Compact 2013)

3/26/2014

Retrieves an IEnumPins pointer that can be used to enumerate all the pins available on this filter.

Syntax

HRESULT EnumPins(
  IEnumPins** ppEnum
);

Parameters

  • ppEnum
    Pointer to the IEnumPins interface to retrieve.

Return Value

Returns E_OUTOFMEMORY if a new enumerate could not be created or NOERROR if successful.

Remarks

This member function implements the IBaseFilter::EnumPins method.

It uses the CEnumPins object to construct an enumerator and retrieves the IEnumPins interface from the CEnumPins object. The implementation of CEnumPins::Next calls the CBaseFilter::GetPin member function, which the derived class must provide.

The IEnumPins interface is used by the filter graph manager when adding the filter to the filter graph.

Requirements

Header

dshow.h,
Streams.h

Library

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

See Also

Reference

CBaseFilter Class