共用方式為


IComponentType::put_MediaFormatType

 
Microsoft DirectShow 9.0

IComponentType::put_MediaFormatType

The put_MediaFormatType method sets the DirectShow media format type.

Syntax

  HRESULT put_MediaFormatType(
  BSTR  MediaFormatType
);

Parameters

MediaFormatType

[in] BSTR that specifies the GUID.

Return Values

Returns S_OK if successful. If the method fails, error information can be retrieved using the standard COM IErrorInfo interface.

Requirements

Header: Dshow.h.

Library: Quartz.dll.

See Also