Microsoft DirectX 9.0


The SetMediaType method configures the media types that can be accepted by a particular pin.


HRESULT SetMediaType(
  ULONG  ulPinId,
  AM_MEDIA_TYPE*  pMediaType



[in]  The identifier of the pin on which to set the media type.


[in]  Pointer to a buffer that holds the list of media types that the pin should support.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

See Also