SetTimer的最长时间是多少?解决思路
SetTimer的最长时间是多少?
SetTimer的最长时间是多少?
我在做一个自动换桌面的程序,不过听说SetTimer有最长时间,所以想问问各位,是否有所谓的最长时间?
------解决方案--------------------
uElapse
[in] Specifies the time-out value, in milliseconds.
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.
uElapse
[in] Specifies the time-out value, in milliseconds.
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.
SetTimer的最长时间是多少?
我在做一个自动换桌面的程序,不过听说SetTimer有最长时间,所以想问问各位,是否有所谓的最长时间?
------解决方案--------------------
uElapse
[in] Specifies the time-out value, in milliseconds.
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.
uElapse
[in] Specifies the time-out value, in milliseconds.
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.