ILMDVRSink::CreateEvents Example for C

void OnCreateEvents(ILMDVRSink* pSink)
{
   long registrationId;
   long processId;
   OLE_HANDLE dataWrittenEvent;
   OLE_HANDLE listChangedEvent;

   ILMDVRSink_ CreateEvents  (pSink, registrationId, processId, &dataWrittenEvent, &listChangedEvent);
}