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);
}