Creates a timer object.
Syntax
HRESULT CreateTimer( ITimer *pTimerSource, ITimer **ppTimer );
Parameters
- pTimerSource
- [in] Address of the reference timer for the new timer.
- ppTimer
- [out] Address of the pointer to the new timer object.
Return Value
Returns one of the following values:
S_OK The method was called successfully. E_POINTER A pointer is invalid. E_OUTOFMEMORY The system is out of memory.
Remarks
If pTimerSource is NULL, the base or default reference timer is used to create the new timer.