IltmmCapture::get_VideoCaptureStreamType Example for C++

// Having an IltmmCapture Interface, pCap:

BSTR strType;

// Get the capture stream type
pCap->get_VideoCaptureStreamType(&strType);

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

// release the string
SysFreeString(strType);