| Microsoft DirectX 9.0 |
The CheckMediaType method determines whether a proposed media type is compatible with the display format.
Syntax
HRESULT CheckMediaType(
const CMediaType *pmtIn
);
Parameters
pmtIn
Pointer to a CMediaType object that contains the media type.
Return Value
Returns an HRESULT value. Possible values include the following.
| Value | Description |
| E_FAIL | Invalid media type. |
| E_INVALIDARG | Invalid media type. |
| S_OK | The media type is compatible. |
See Also