共用方式為


IComponentType::get_MediaFormatType

 
Microsoft DirectShow 9.0

IComponentType::get_MediaFormatType

The get_MediaFormatType method retrieves the DirectShow media format type as a BSTR.

Syntax

  HRESULT get_MediaFormatType(
  BSTR*  pMediaFormatType
);

Parameters

pMediaFormatType

[out] Pointer to a BSTR that will receive 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