KillTimer

2.x

  BOOL KillTimer(hwnd, idTimer)    
  HWND hwnd; /* handle of window that installed timer */
  UINT idTimer; /* timer identifier, */  

The KillTimer function removes the specified timer. Any pending WM_TIMER messages associated with the timer are removed from the message queue.

Parameters

hwnd

Identifies the window associated with the timer to be removed. This must be the same value passed as the hwnd parameter of the SetTimer function that created the timer.

idTimer

Identifies the timer to be removed. If the application called SetTimer with the hwnd parameter set to NULL, this parameter must be the timer identifier returned by SetTimer. If the hwnd parameter of SetTimer was a valid window handle, this parameter must be the value of the idTimer parameter passed to SetTimer.

Return Value

The return value is nonzero if the function is successful. It is zero if the KillTimer function could not find the specified timer.

See Also

SetTimer