Microsoft DirectX 9.0 |
The EnumMediaTypes method enumerates the pin's preferred media types.
Syntax
HRESULT EnumMediaTypes(
IEnumMediaTypes **ppEnum
);
Parameters
ppEnum
[out] Address of a variable that receives a pointer to the IEnumMediaTypes 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.
See Also