Replaces the named timer's reference timer with a new reference timer.
Syntax
HRESULT SetNamedTimerReference( REFGUID rguidName, ITimer *pRefTimer );
Parameters
- rguidName
- [in] Address of the name of the timer to retrieve.
- pRefTimer
- [in] Address of the timer that will become the reference timer for the named timer.
Return Value
Returns one of the following values:
S_OK The method was called successfully. E_POINTER A pointer is invalid. E_INVALIDARG One of the arguments is invalid. E_OUTOFMEMORY The system is out of memory.
Remarks
All notifications assigned to the named timer are moved to the new reference timer.