Share via


IComponentType::get__MediaFormatType Method

The get__MediaFormatType method retrieves the DirectShow media format type as a GUID.

Syntax

HRESULT get__MediaFormatType(
  [out]  GUID *pMediaFormatType
);

Parameters

  • pMediaFormatType [out]
    Pointer to a GUID that will receive the format type.

Return Value

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

Remarks

This method is available through C++ only. Note the two underscores in the method name as compared to the one underscore for the method that uses a BSTR as a parameter.

Requirements

Header Declared in Dshow.h.
DLL Requires Quartz.dll.

See Also

AM_MEDIA_TYPE
IComponentType Interface

Send comments about this topic to Microsoft

Build date: 12/4/2008