dos12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
DosTimerStop (1.2)
Function Group  Overview                          Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_DOSDATETIME
 
USHORT DosTimerStop(htimer)
HTIMER htimer;    /* timer handle */
 
The DosTimerStop function stops a specified timer.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
htimer     Identifies the timer to be stopped. This handle must have been
           created previously by using the DosTimerAsync or DosTimerStart
           function.
 
Return Value
 
The return value is zero if the function is successful. Otherwise, it is an
error value, which may be the following:
 
     ERROR_TS_HANDLE
 
Comments
 
When the DosTimerStop function stops a timer, it does not clear the
corresponding semaphore. If a process is waiting for the semaphore to clear,
the process that stops the timer should also clear the semaphore.
 
See Also
 
DosTimerAsync, DosTimerStart