IltmmCapture::CanSaveObjectSettings Example for C

// Having an IltmmCapture Interface, pCap:

L_MULTIMEDIATEX_API void IltmmCapture_CanSaveObjectSettings_Example (IltmmCapture* pCapture)
{
   VARIANT_BOOL bSave;

   // check if we can save the processor's settings
   IltmmCapture_CanSaveObjectSettings (pCapture, ltmmCapture_Settings_Processors, &bSave);
 
   if( bSave == VARIANT_TRUE )
   {
      /* call ltmmCapture_SaveSettingsToStream or ltmmCapture_SaveSettingsToFile*/
   } 
}