ILMDVRSource::ReadData Example for C++
void CDVRSinkDlg::OnReadData(ILMDVRSource* pSource)
{
double startOffset = 0;
long minSize = 0;
long maxSize = 4096;
DWORD dwUserData = 0;
BYTE *pData = malloc(4096);
long sizeRead;
pSource-> ReadData (startOffset, minSize, maxSize, dwUserData, pData, &sizeRead);
free(pData);
}