ILMDVRSink::StartBackupToFile Example for C

void OnBackupToFile(ILMDVRSink* pSink)
{
   BSTR targetFile = SysAllocString(L"C:\\Temp\\BackupVideo.MPG");
   long flags = 0; // reserved for future use, pass 0

   ILMDVRSink_StartBackupToFile(pSink, targetFile, flags);

   SysFreeString(targetFile);
}