This function translates, or maps, a virtual-key code into a scan code or character value, or translates a scan code into a virtual-key code.
At a Glance
Header file: | Winuser.h |
Windows CE versions: | 1.0 and later |
Syntax
UINT MapVirtualKey( UINT uCode, UINT uMapType );
Parameters
uCode
[in] Specifies the virtual-key code or scan code for a key.
uMapType
[in] Specifies the translation to perform. It is the following value:
Value | Description |
2 | The uCode parameter is a virtual-key code and is translated into an unshifted character value in the low-order word of the return value. Dead keys (diacritics) are indicated by setting the top bit of the return value. If there is no translation, the function returns 0. |
Return Values
A character value indicates success. Zero indicates that there is no translation.
See Also