Hi,
I am trying to kill all my timers. So I am trying to put PeekMessage at the end to kill all wm_timer which left on the message queue. So that's my code is

KillTimer(Timer_A);
KillTimer(Timer_B);
MSG m;
while(PeekMessage(&m,NULL,WM_TIMER,WM_TIMER,PM_REMOVE))
{
KillTimer(m.wParam);
Sleep(1);
}

The above code works on my work computer but it is not working on some other computers. I used remote debugger and tried to debug it. I am receiving 0x0113 for the m.wParam value which is a value of WM_TIMER. The problem is that if I remove the PeekMessage loop It cause some other problems. Could you please let me know what might be causing this issue?

Regards,
ABM