IltmmConvert::get_SourceVideoType Example for C++

void GetConvertSourceVideoType(IltmmConvert *pConvert)
{
   CString strVideoType;
   BSTR bstr = NULL;

   // get the source video type name
   pConvert->get_SourceVideoType(&bstr);

   // format display string
   strVideoType.Format(TEXT("Source video type GUID is %s"), bstr);
   
   // display the source video type
   MessageBox(NULL, strVideoType, TEXT("Source Video Type"), MB_OK);

   // free the bstr
   SysFreeString(bstr);
}