Use the SetTimer function
Code: CPP
UINT_PTR SetTimer(          HWND hWnd,
    UINT_PTR nIDEvent,
    UINT uElapse,
    TIMERPROC lpTimerFunc
);
To kill the timer use
Code: CPP
BOOL KillTimer(int nIDEvent);
Where the nIDEvent is the ID returned by the SetTimer Function.