Share via


IBDA_Topology::SetMediaType Method

The SetMediaType method sets the media type for a pin on a BDA device filter.

Syntax

HRESULT SetMediaType(
  [in]  ULONG ulPinId,
  [in]  AM_MEDIA_TYPE *pMediaType
);

Parameters

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

  • pMediaType [in]
    Pointer to an AM_MEDIA_TYPE structure that contains the media type.

Return Value

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

Requirements

Header Declared in Bdaiface.h.

See Also

Error and Success Codes
IBDA_Topology Interface

Send comments about this topic to Microsoft

Build date: 12/4/2008