IltmmCapture::get_PreviewingCloseCaption Example for C

/* Having an IltmmCapture Interface, pCap:*/

L_MULTIMEDIATEX_API void IltmmCapture_get_PreviewingCloseCaption_Example (IltmmCapture* pCapture)
{
   VARIANT_BOOL bCC;

   /* check the close captions previewing state */
   IltmmCapture_get_PreviewingCloseCaption(pCapture, &bCC);

   if( bCC == VARIANT_FALSE )
   {
      /*Close captions are not previewing; do something*/
   }
}