IltmmCapture::get_VideoCaptureStreamType Example for C

/* Having an IltmmCapture Interface, pCap: */

BSTR strType;

/* Get the capture stream type */
IltmmCapture__get_VideoCaptureStreamType
(pCap, &strType);

If( _wcsicmp(L“MEDIATYPE_Stream”, OLE2T(strType)) != 0 )
{
   /* the capture stream type is not MEDIATYPE_Stream, do something */
}

/* release the string */
SysFreeString(strType);