The information in this article applies to:
SUMMARY
This article describes a method to quickly determine whether an
application for the Microsoft Windows graphical environment has any
keyboard or mouse messages in its queue without calling the GetMessage
or PeekMessage functions.
MORE INFORMATION
The GetInputState function returns this information more quickly than
GetMessage or PeekMessage. GetInputState returns TRUE (nonzero) if
either a keyboard or mouse message is in the application's input
queue. If the application must distinguish between a mouse and a
keyboard message, GetInputState returns the value 2 for a keyboard and
the value 1024 for a mouse message.
Additional query words: yield
Keywords : kbNTOS kbWinOS2000 kbSDKWin32 kbGrpUser kbWinOS kbWndw kbWndwMsg |
Last Reviewed: February 1, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |