I am working on a program that runs in the system tray. I have been told by people that have run the program on Windows 98 that if it is running, Windows will not shut down unless they close the program first. I am using XP and do not have this problem.

I'm using a timer control that is continuely running so I am assuming that this is the cause of the problem. I have thought about using the GetTickCount function instead and just run it in a loop.

Has anybody seen this problem before and know how to solve it? Do I need to make a API call to see if Windows is trying to shut down? If so what function would I need to use?