Starts an asynchronous, single-interval timer.

#define INCL_DOSDATETIME
#include <os2.h>

ULONG      msec;     /*  The time, in milliseconds, before the event semaphore specified by hsem is posted. */
HSEM       hsem;     /*  The handle of an event semaphore that will be posted when the time specified by msec has elapsed. */
PHTIMER    phtimer;  /*  A pointer to the timer handle. */
APIRET     ulrc;     /*  Return Code. */

ulrc = DosAsyncTimer(msec, hsem, phtimer);


[Back] [Next]