Home COM GDI+ WebBrowser Data Access

ITimer  Interface

 

IID_ITimer

{3050F360-98B5-11CF-BB82-00AA00BDCE0B}

 

 

This interface implements timer functions.

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

ITimer Methods

Description

Advise

Schedules single or periodic notifications.

Unadvise

Cancels an event request.

Freeze

Halts the timer temporarily.

GetTime

Retrieves the current time of the timer.

 

Advise

 

FUNCTION ITimer_Advise ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL vtimeMin AS VARIANT _
, BYVAL vtimeMax AS VARIANT _
, BYVAL vtimeInterval AS VARIANT _
, BYVAL dwFlags AS DWORD _
, BYVAL pTimerSink AS DWORD _
, BYREF pdwCookie AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[3] USING ITimer_Advise (pthis, vtimeMin, vtimeMax, vtimeInterval, dwFlags, pTimerSink, pdwCookie) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Unadvise

 

FUNCTION ITimer_Unadvise ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL dwCookie AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[4] USING ITimer_Unadvise (pthis, dwCookie) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Freeze

 

FUNCTION ITimer_Freeze ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL fFreeze AS LONG _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[5] USING ITimer_Freeze (pthis, fFreeze) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetTime

 

FUNCTION ITimer_GetTime ( _
  BYVAL pthis AS DWORD PTR _
, BYREF pvtime AS VARIANT _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[6] USING ITimer_GetTime (pthis, pvtime) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Page last updated on Tuesday, 14 March 2006 06:53:40 +0100