How To Use SetWaitableTimer With Visual Basic (231298)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
This article was previously published under Q231298 SUMMARY Many programmers use the Sleep API function to pause the
execution of their programs. One of the disadvantages of using Sleep is that it
pauses the thread that the application is running in, and that any window that
the application has open will not repaint properly. This may present an
unattractive user interface to the user. An alternative to Sleep is to use
SetWaitableTimer, which will allow the screen to repaint, receive DDE messages,
and so forth. REFERENCES For additional information, click the article number below
to view the article in the Microsoft Knowledge Base: 184796 How To Use a Waitable Timer with an Asynchronous Procedure Call
The Microsoft Win32 Software Developers Kit documents the
SetWaitableTimer, MsgWaitForMultipleObjects and CloseHandle API calls.
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbAPI kbhowto KB231298 |
---|
|