You can use the SetTimer API call provided by Windows. When you call SetTimer, the system will send you WM_TIMER messages at the interval that you specify.