ILMDVRSink::CreateEvents Example for C++

#include "ILMDVRSink.h"
void OnCreateEvents(ILMDVRSink* pSink)
{
   long registrationId;
   long processId;
   OLE_HANDLE dataWrittenEvent;
   OLE_HANDLE listChangedEvent;
   pSink->CreateEvents(registrationId, processId, &dataWrittenEvent, &listChangedEvent);
}