Syntax
C++
C#
Visual Basic .NET
Parameters
Character [in] Contains the character code value of the key. Count [in] Contains the repeat count, the number of times the keystroke is repeated when user holds down the key. Flags [in] Contains the scan code, key-transition code, previous key state, and context code, as shown in the following list:| Value | Description |
|---|---|
| 0-7 | Specifies the scan code. The value depends on the original equipment manufacturer (OEM). |
| 8 | 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. |
| 9-12 | Used internally by Windows. |
| 13 | Specifies the context code. The value is 1 if the ALT key is held down while the key is pressed; otherwise, the value is 0. |
| 14 | Specifies the previous key state. The value is 1 if the key is down before the message is sent, or it is 0 if the key is up. |
| 15 | Specifies the transition state. The value is 1 if the key is being released, or it is 0 if the key is being pressed. |
