I would like to start Windows timer using
SetTimer(HWND hWnd, UINT nIDEvent, ...);
My application has no window, it simply starts a child thread and waits for messages from that thread. My wish is to have a some timeout timer to proceed the job for the case, when something wrong is happened with that child thread. The problem is that SetTimer() works problemmatically with argument hWnd==NULL. Parameter of WM_TIMER message in such case does contain value different from the timer identifier nIDEvent, what should be in the normal case, so I cannot distinguish message of what timer is arrived. Another problem - such a timer cannot be killed. Once started, timeout messages are comming all the time. Is there may be some other way to deal with timers without application window? Operating system I'm currently using is Windows98.
SetTimer(HWND hWnd, UINT nIDEvent, ...);
My application has no window, it simply starts a child thread and waits for messages from that thread. My wish is to have a some timeout timer to proceed the job for the case, when something wrong is happened with that child thread. The problem is that SetTimer() works problemmatically with argument hWnd==NULL. Parameter of WM_TIMER message in such case does contain value different from the timer identifier nIDEvent, what should be in the normal case, so I cannot distinguish message of what timer is arrived. Another problem - such a timer cannot be killed. Once started, timeout messages are comming all the time. Is there may be some other way to deal with timers without application window? Operating system I'm currently using is Windows98.