ILMDVRSource::CopyBufferToFile Example for C
void OnCopyBufferToFile(ILMDVRSource* pSource)
{
BSTR targetFile = ::SysAllocString(L"C:\\Temp\\CapturedVideo.MPG");
double startPos;
double endPos;
ILMDVRSource_ CopyBufferToFile (pSource, targetFile, startPos, endPos);
::SysFreeString(targetFile);
}