Microsoft KB Archive/100713
Support for Sleep() on Win32s
The information in this article applies to:
- Microsoft Win32s versions 1.0, 1.1, 1.2, 1.3, 1.30a, 1.3c
The Win32 application programming interface (API) documentation indicates that Sleep() is supported on Win32s. It is important to note, however, that the behavior of Sleep() on Win32s is not the same as it is under Windows NT.
Under Win32s, Sleep() calls Yield(). The Windows version 3.1 Yield() function yields only if the message queue is empty; therefore, Sleep() cannot be relied on to do anything. Use a PeekMessage() loop to do idle time processing.
Additional query words: 1.00 1.20
Keywords : kbOSWin32s
Issue type :
Technology : kbWin32sSearch kbWin32s100 kbWin32s110 kbWin32s120 kbWin32s130 kbWin32s130a kbWin32s130c
Last Reviewed: January 16, 2000