Tech Support > Microsoft Windows > Development Resources > Convert ReadConsoleInput to real characters
Convert ReadConsoleInput to real characters
Posted by Jeffrey Adler on March 15th, 2007


I am writing a program that uses ReadConsoleInput to get keyboard input. Is
there a "normal" way to convert the INPUT_RECORD into a fully converted
keycode?

For example, if a press Shift-7 (the & key), I get a KEY_EVENT_RECORD for
the "Shift" keypress and another for the "7" key, and wVirtualKeyCode
returns a "7", not the "&".

Is there a conversion routine or some other way to feed a KEY_EVENT_RECORD
and return a real keyboard character?

Thanks.



Similar Posts