The IReferenceClock::AdviseTime method requests an asynchronous notification that a duration has elapsed.
HRESULT AdviseTime(
REFERENCE_TIME rtBaseTime,
REFERENCE_TIME rtStreamTime,
HEVENT hEvent,
DWORD * pdwAdviseCookie
);
Return values are determined by the implementation. If the method succeeds, it returns S_OK. If it fails, it may return one of the following error values:
E_FAIL |
E_POINTER |
E_INVALIDARG |
E_NOTIMPL |
When the time rtBaseTime + rtStreamTime is reached, the event whose handle is hEvent will be set. If the time has already passed, the event will be set immediately.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in dmusicc.h.