ILMDVRSink::GetBufferInfo Example for C

void OnGetBufferInfo(ILMDVRSink* pSink)
{
   long index = 0;
   BSTR filename;
   double usefulSize;
   double fileSize;
   long playIndex;
   long flags;

   ILMDVRSink_ GetBufferInfo  (pSink, index, &filename, &usefulSize, &fileSize, &playIndex, &flags);

   ::SysFreeString(filename);
}