// Set the timer. <br> <br>SetTimer(hwnd, // handle to main window <br> IDT_TIMER1, // timer identifier <br> 5000, // 5-second interval <br> (TIMERPROC) MyTimerProc); // timer callback<br>KillTimer(hwnd, IDT_TIMER1);