You may use the varius timer API functions. For instance, the SetTimer() function will create the timer and call your specified call-back function every n milliseconds. Hence, the KillTimer() function will destroy the timer you created when using the SetTimer() function.

The best way I find is to just run through an infinate loop using GetTickCount() instead.