Export (0) Print
Expand All

IPin::EnumMediaTypes method

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

Syntax


HRESULT EnumMediaTypes(
  [out]  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.

Return codeDescription
S_OK

Success.

E_OUTOFMEMORY

Insufficient memory.

E_POINTER

NULL pointer argument.

VFW_E_NOT_CONNECTED

The pin is not connected. Some pins do not enumerate media types unless the pin is connected to another filter.

 

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Strmif.h (include Dshow.h)

Library

Strmiids.lib

See also

Data Flow in the Filter Graph
Error and Success Codes
IPin Interface

 

 

Community Additions

ADD
Show:
© 2014 Microsoft