Hi, @Markus Freitag
Set timer example: SetTimer(1, 1000,NULL);
You can put KillTimer in OnTimer event.
Best regards,
Minxin Yu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Is it your intent to use a timer to poll for the completion of some event?
It's hard to answer. Are you dissatisfied with the timer you are currently using?
SetTimer parameter uElapse: The time-out value, in milliseconds.
Sample: Using Timers