OnTimer method

Called by the timer service for a scheduled event.

Syntax

HRESULT retVal = object.OnTimer(vtimeAdvise);

Parameters

  • vtimeAdvise [in]
    Type: VARIANT

    A VARIANT of type DWORD that specifies the scheduled time for an event.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The OnTimer method is called by the timer service for a scheduled event. Events can be fired before or after the scheduled time.