Have you tried with VkKeyScanEx function? The VkKeyScanEx function translates a character to the corresponding virtual-key code and shift state. The function translates the character using the input language and physical keyboard layout identified by the input local identifier.
Syntax:
Code:
SHORT VkKeyScanEx(
TCHAR ch,
HKL dwhkl
);
where,
ch: Specifies the character to be translated into a virtual-key code.
dwhkl: Inputs local identifier used to translate the character. This parameter can be any input local identifier previously returned by the LoadKeyboardLayout function.
Bookmarks