ILMDVRSink::StartBackupToFile Example for C++

#define MAKE_MEDIA_PATH(pFileName) (TEXT("C:\\LEADTOOLS 17.5\\Media\\")TEXT(pFileName))


void OnBackupToFile(ILMDVRSink* pSink)
{
   BSTR targetFile = ::SysAllocString(MAKE_MEDIA_PATH("BackupVideo.MPG"));

   pSink->StartBackupToFile(targetFile, 0);

   ::SysFreeString(targetFile);
}