Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Win 2 API - <b>settimer</b> create a system timer http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SetTimer            Create A System Timer

WORD SetTimer(hWnd, nIDEvent, wElapse, lpTimerFunc)
HWND hWnd;
short nIDEvent; /* ID to send to window or NULL for SetTimer to create ID */
unsigned wElapse; /* Number of milliseconds between timer events */
FARPROC lpTimerFunc; /* Function called when timer goes off of NULL for none */

Returns:    ID of new timer if NULL if error (no more timers available)

Note:       Optional notification function is defined as:

                WORD FAR PASCAL TimerFunc(hWnd, wMsg, nIDEvent, dwTime)
                HWND hWnd;
                WORD wMsg;
                int nIDEvent;
                DWORD dwTime;

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson