hello
I'm writing a multilingual app and I'm using a WH_KEYBOARD_LL hook. I doesn't mater why I'm using the hook, I'm tried multiple things but this is the simplest and fastest way to do it.
Now inside the hook proc
LRESULT CALLBACK LowLevelKeyboardProc(int nCode,WPARAM wParam, LPARAM lParam);
I receive a KBDLLHOOKSTRUCT in LPARAM parameter which contains the info for the pressed key. Is there any way to concert this info in an unicode character according to the current keyboard layout that the user has set so for ex. if the user has a Chinese keyboard layout set and he preses the "a" key then I receive a KBDLLHOOKSTRUCT containing the "a" key scan code and I need to convert this scan code to the corresponding unicode character. I know this is possible because you can write in Chinese in Microsoft Word, I just can't figure out how to do it.
Thanks.