Алгоритм.
В Гугле находим отрывок
Windows NT/2000/XP: If uElapse is greater than USER_TIMER_MAXIMUM, the timeout is set to 1.
Windows 2000/XP: If uElapse is less than USER_TIMER_MINIMUM, the timeout is set to USER_TIMER_MINIMUM.
Windows Server 2003: If uElapse is greater than USER_TIMER_MAXIMUM, the timeout is set to USER_TIMER_MAXIMUM.
Windows XP SP2/Windows Server 2003 SP1: If uElapse is less than USER_TIMER_MINIMUM, the timeout is set to USER_TIMER_MINIMUM. If uElapse is greater than USER_TIMER_MAXIMUM, the timeout is set to USER_TIMER_MAXIMUM.
Чешем репу. Прёмся в более старый MSDN, ещё не содержащий этой константы. Видим:
Windows NT/2000/XP: If uElapse is greater than 0x7fffffff, the timeout is set to 1.
Windows 2000/XP: If uElapse is less than 10, the timeout is set to 10.
Windows Server 2003: If uElapse is greater than 0x7fffffff, the timeout is set to 0x7fffffff
Делаем вывод.
Ответить
|