共用方式為


IAMMediaTypeStream::GetFormat

 
Microsoft DirectShow 9.0

IAMMediaTypeStream::GetFormat

  • Note   This interface is deprecated. New applications should not use it.

The GetFormat method retrieves the format of the stream.

Syntax

  HRESULT GetFormat(
  AM_MEDIA_TYPE *pMediaType,
  DWORD dwFlags
);

Parameters

pMediaType

[out] Pointer to an AM_MEDIA_TYPE structure that receives the stream format.

dwFlags

[in] Reserved.

Return Values

Returns one of the following values.

Return code Description
MS_E_NOSTREAM No stream is associated with this object.
S_OK Success.

See Also