static HRESULT STDMETHODCALLTYPE MyUnadvise (IReferenceClock* pThis, DWORD dwAdviseCookie) { debuglog(LCF_TIMERS, __FUNCTION__ " called.\n"); //return Unadvise(pThis, dwAdviseCookie); if(TIMERR_NOERROR == MytimeKillEvent((UINT)dwAdviseCookie)) return S_OK; //return S_FALSE; return Unadvise(pThis, dwAdviseCookie); // because AdvisePeriodic still does passthrough }
static HRESULT STDMETHODCALLTYPE MyUnadvise(IReferenceClock* pThis, DWORD dwAdviseCookie) { ENTER(); //return Unadvise(pThis, dwAdviseCookie); if (TIMERR_NOERROR == MytimeKillEvent((UINT)dwAdviseCookie)) return S_OK; //return S_FALSE; return Unadvise(pThis, dwAdviseCookie); // because AdvisePeriodic still does passthrough }