The ImmGetVirtualKey function recovers the original virtual-key value associated with a key input message that has already been processed by the IME.
UINT ImmGetVirtualKey(
HWND hWnd
);
The return value is the original virtual-key value.
Although the IME sets the virtual-key value to VK_PROCESSKEY after processing a key input message, an application can recover the original virtual-key value with the ImmGetVirtualKey function. This function can be used only for key input messages containing the VK_PROCESSKEY value.
Windows NT: Requires version 4.0 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in imm.h.
Import Library: Use imm32.lib.
Input Method Editor Overview, Input Method Editor Functions