Поделиться через


IPin::EnumMediaTypes

 
Microsoft DirectShow 9.0

IPin::EnumMediaTypes

The EnumMediaTypes method enumerates the pin's preferred media types.

Syntax

  HRESULT EnumMediaTypes(
  IEnumMediaTypes **ppEnum
);

Parameters

ppEnum

[out]  Receives a pointer to the IEnumMediaTypes interface. The caller must release the interface.

Return Value

Returns an HRESULT value. Possible values include the following.

Value Description
S_OK Success.
E_OUTOFMEMORY Insufficient memory.
E_POINTER NULL pointer argument.

Remarks

The IEnumMediaTypes interface works like a standard COM enumerator. For more information, see Enumerating Objects in a Filter Graph. If the method succeeds, the IEnumMediaTypes interface has an outstanding reference count. Be sure to release it when you are done.

Requirements

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

Library: Use Strmiids.lib.

See Also