Knowledge Base |

# Support for Sleep() on Win32s

PSS ID Number: 100713

Article Last Modified on 10/2/2003

The information in this article applies to:

- Microsoft Win32s 1.0
- Microsoft Win32s 1.1
- Microsoft Win32s 1.2
- Microsoft Win32s 1.3
- Microsoft Win32s 1.30a
- Microsoft Win32s 1.3c

This article was previously published under Q100713

## SUMMARY

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: KB100713
Technology: kbWin32s100 kbWin32s110 kbWin32s120 kbWin32s130 kbWin32s130a kbWin32s130c kbWin32sSearch