|Microsoft DirectX 9.0|
The GetMediaType method retrieves the uncompressed media type for the group.
HRESULT GetMediaType( AM_MEDIA_TYPE *pmt );
[out] Pointer to an AM_MEDIA_TYPE structure that is filled with the media type.
Returns S_OK if successful, or E_POINTER otherwise.
The caller must free the returned media type's format block, given in the pbFormat member of the returned AM_MEDIA_TYPE structure. You can use the helper function FreeMediaType from the base class library.
Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.
Library: Use strmiids.lib.