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