Applications that read character input from the keyboard must use the TranslateMessage function in their message loops. TranslateMessage translates a keyboard-input message into a corresponding Windows-character message, WM_CHAR or WM_SYSCHAR. The wParam parameter in these messages contains the Windows character codes for the given key. The lParam parameter is identical to lParam in the keyboard-input message.