HOWTO: Set the CAPS LOCK, SCROLL LOCK, and NUM LOCK States (94606)
The information in this article applies to:
- Microsoft Windows Software Development Kit (SDK) 3.1
This article was previously published under Q94606 SUMMARY
The current state of the CAPS LOCK, SCROLL LOCK, and NUM LOCK keys can be queried and retrieved by the GetKeyboardState function. Although the SetKeyboardState function works on Windows 3.1x, it does not work correctly on Windows 95 or Windows NT. SetKeyboardState retrieves a byte array describing the state of every key. If the low order bit of a toggle key is set, the key is "on." By changing this bit, the toggle key state can be changed.
Modification Type: | Minor | Last Reviewed: | 2/11/2005 |
---|
Keywords: | kb16bitonly kbhowto kbInput kbKeyIn kbUser KB94606 |
---|
|