Здравствуйте, Alexmoon, Вы писали:
A>[MSDN] A>24-бит значения LPARAM — Specifies whether the key is an extended key, such as the right-hand ALT and CTRL keys that appear on an enhanced 101- or 102-key keyboard. The value is 1 if it is an extended key; otherwise, it is 0. A>[/MSDN]
Если все таки lParam не даст желаемого результата, то тебе поможет раздел — Keyboard Input Functions: