TranslateMessage (Compact 2013)
This function translates virtual-key messages into character messages. The character messages are posted to the calling thread's message queue, to be read the next time the thread calls the GetMessage or PeekMessage function.
Nonzero indicates that the message is translated, that is, a character message is posted to the thread's message queue. If the message is WM_KEYDOWN or WM_SYSKEYDOWN, the return value is nonzero, regardless of the translation. Zero indicates that the message is not translated, that is, a character message is not posted to the thread's message queue.
The TranslateMessage function does not modify the message pointed to by the lpMsg parameter.
TranslateMessage produces WM_CHAR messages only for keys that are mapped to ASCII characters by the keyboard driver. Windows Embedded Compact does not support scan codes or extended key flags, so it does not support the values 16 through 24 in the lKeyData parameter (lParam) of the WM_CHAR message generated by the TranslateMessage function.
TranslateMessage can only be used to translate messages received from calls to GetMessage or PeekMessage.
If applications process virtual-key messages for some other purpose, they should not call TranslateMessage. For instance, an application should not call TranslateMessage if the TranslateAccelerator function returns a nonzero value.