Group: Keyboard Input - Library: user32
Translates (maps) a virtual-key code into a scan code or character value, or translates a scan code into a virtual-key code.
Capturing keyboard activity of another application with the Raw Input API (VFP9)
UINT WINAPI MapVirtualKey(
__in UINT uCode,
__in UINT uMapType
);
DECLARE INTEGER MapVirtualKey IN user32;
LONG uCode,;
LONG uMapType
uCode [in] The virtual key code or scan code for a key. How this value is interpreted depends on the value of the uMapType parameter.
uMapType [in] The translation to be performed. The value of this parameter depends on the value of the uCode parameter.
The return value is either a scan code, a virtual-key code, or a character value, depending on the value of uCode and uMapType. If there is no translation, the return value is zero.
To specify a handle to the keyboard layout to use for translating the specified code, use the MapVirtualKeyEx function.