SetTimer
is documented
here[
^]. Based on that page, the only way to distinguish the timers is to use the
WM_TIMER
event instead of a callback to a
TIMERPROC
:
Quote:
The wParam parameter of the WM_TIMER message contains the value of the nIDEvent parameter.
The
documentation[
^] for a
TIMERPROC
mentions unnamed parameters. I wouldn't be surprised if the
UINT_PTR
one was at least intended to be your timer identifier, but it doesn't seem like this was implemented. I think I know why, but it doesn't really matter.
EDIT: Based on what Richard mentioned below, the third parameter to your
TIMERPROC
should indeed be your original timer identifier.