ILMDVRSink::CopyBufferToFile Example for C

void OnCopyBufferToFile(ILMDVRSink* pSink)
{
   BSTR targetFile = SysAllocString(L"C:\\Temp\\CapturedVideo.MPG");
   double startPos;
   double endPos;

   ILMDVRSink_CopyBufferToFile(pSink, targetFile, startPos, endPos);

   SysFreeString(targetFile);
}