| Microsoft DirectX 8.1 (C++) | 
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 Value
Returns one of the following values.
| Return code | Description | 
| MS_E_NOSTREAM | No stream is associated with this object. | 
| S_OK | Success. | 
See Also