GetMessageSource (Compact 2013)
This function determines the source of a keyboard message.
When targeting devices that support both a hardware keyboard and a soft keyboard, you can use the GetMessageSource function to determine the source of a keyboard input message. Keyboard events that originate from the keyboard driver or keybd_event are marked as hardware. Messages generated from PostMessage are marked as software.
Use this function to determine the source of the following messages: