UniTranslateKey

Translates a scan code and the effective shift state to a Unicode and virtual/dead key. It also sets the BIOS scan code.

Syntax
UniTranslateKey(kbHndl, effShift, vScan, uc, vdKey, biosScan);

Parameters

 * kbHndl - KHAND - input : The keyboard handle created from UniCreateKeyboard.
 * effShift - ULONG - input : The effective shift state returned from UniUpdateShiftState.
 * vScan - VSCAN - input : The Presentation Manager scan code which indicates the key. This does not indicate any action keys like break, repeat, make, etc.
 * uc - UniChar - output : The Unicode character returned.
 * vdKey - VDKEY - output : The virtual/dead key.
 * biosScan - BYTE - output : The BIOS scan code.

Constants
None

Returns
An integer with values of:
 * ULS_BADHANDLE
 * ULS_SUCCESS

Calling Convention
Cdecl32

Example Code
KHAND  kbHndl; ULONG  effShift; VSCAN  vScan; UniChar uc; VDKEY  vdKey; BYTE   biosScan; integer rc; ... rc = UniTranslateKey(kbHndl, effShift, vScan, uc, vdKey, biosScan); ...

Related Functions

 * UniTranslateDeadKey
 * UniUntranslateKey

OS Version Introduced
OS/2 Warp