IltmmCapture::put_TargetStream Example for C++

void SetTargetToMemoryObject(IltmmCapture *pCapture, IltmmMemory *pMem)
{
   // reset the target first
   pCapture->ResetTarget();

   // set the target to our stream
   pCapture->put_TargetStream(pMem);
}