ILMDVRSink::CopyBufferToFile Example for C++
void CDVRSinkDlg::OnCopyBufferToFile(ILMDVRSink* pSink)
{
BSTR targetFile = ::SysAllocString(L"C:\\Temp\\CapturedVideo.MPG");
double startPos;
double endPos;
pSink-> CopyBufferToFile (targetFile, startPos, endPos);
::SysFreeString(targetFile);
}