The timeKillEvent function cancels a specified timer event.
MMRESULT timeKillEvent(
UINT uTimerID
);
Returns TIMERR_NOERROR if successful or MMSYSERR_INVALPARAM if the specified timer event does not exist.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mmsystem.h.
Import Library: Use winmm.lib.
Multimedia Timers Overview, Multimedia Timer Functions, timeSetEvent