Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This function destroys the specified timer. The OS searches the message queue for any pending WM_TIMER messages associated with the timer and removes those messages.
BOOL WINAPI KillTimer_I(HWND hwnd,UINT uIDEvent);
Parameters
- hwnd
[in] Handle to the window associated with the specified timer. This value must be the same as the hWnd value that you passed to the SetTimer_I function when you created the timer. - uIDEvent
[in] Unsigned integer that specifies the identifier of the timer that you want to destroy. If the window handle that you passed to SetTimer_I is valid, this parameter must be the same as the uIDEvent value that you passed to SetTimer_I. If the application called SetTimer_I with hWnd set to NULL, this parameter must be the timer identifier returned by SetTimer_I.
Return Values
A nonzero value indicates success. Zero indicates failure. To get extended error information, call GetLastError.
Remarks
The KillTimer_I function does not remove WM_TIMER messages already posted to the message queue.
If you set the uElapse parameter of the SetTimer_I function to INFINITE, KillTimer_I fails to destroy the timer.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Gwebypasscoredllthunk.hpp.
See Also
KillTimer | SetTimer_I | WM_TIMER
Send Feedback on this topic to the authors