The information in this article applies to:
SUMMARYIt is possible using ReadConsoleInput() or PeekConsole() to distinguish between a key on the main keyboard and it's duplicate key on the numeric keypad. The KEY_EVENT_RECORD structure in the INPUT_RECORD structure must be used to distinguish between the two keys. MORE INFORMATIONThe following example illustrates what the KEY_EVENT_RECORD structure is filled with after a keyboard ENTER key versus a numeric keypad ENTER key is pressed. Keyboard ENTER Key
Numeric Keypad ENTER Key
In the case of the numeric keypad key, in dwControlKeyState, the
ENHANCED_KEY bit is set.
Additional query words: 3.10 3.50
Keywords : kbConsole kbKernBase kbNTOS310 kbNTOS350 kbNTOS351 kbNTOS400 kbWinOS2000 kbWinOS95 kbDSupport kbGrpKernBase |
Last Reviewed: January 11, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |