IltmmCapture::get_PreviewingCloseCaption Example for C++

// Having an IltmmCapture Interface, pCap:

VARIANT_BOOL bCC;

// check the close captions previewing state
pCap->get_PreviewingCloseCaption(&bCC);
If( bCC == VARIANT_FALSE )
{
   //Close captions are not previewing; do something
}