IltmmConvert::get_InterleaveMode Example for C++

void GetConvertInterleaveMode(IltmmConvert *pConvert)
{
   ltmmConvert_InterleavingMode lInterleaveMode;
   // get the interleave mode
   HRESULT hr = pConvert->get_InterleaveMode((long *)&lInterleaveMode);

   if (SUCCEEDED(hr))
   {
      // do something if interleave mode is not what we want
      if (lInterleaveMode != ltmmConvert_Interleave_Convert)
         pConvert->put_InterleaveMode((long)ltmmConvert_Interleave_Convert);
   }
}