Jump to content

UniUntranslateKey

From EDM2
Revision as of 07:10, 11 May 2006 by Daniel.lee.kruse (talk | contribs) (UniUntranslateKey created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UniUntranslateKey

UniUntranslateKey(keyHndl, uc, vdkey, pmscan, efshift)
Translates a Unicode character and virtual/dead key to a scan code to create the effective shift state.

Parameters

keyHndl - KHAND - input
The keyboard handle as created by UniCreateKeyboard.
uc - UniChar - input
Unicode character to be untranslated.
vdkey - VDKEY - input
Virtual/dead key.
pmscan - VSCAN - output
The Presentation Manager scan code.
efshift - ULONG - output
Effection shift state to generate this character.

Constants

None

Returns

An integer with values of:

Module

Define (C/C++)

Export name/Ordinal

Calling conversion

Cdecl32

Example Code

KHAND   keyHndl;
UniChar uc;
VDKEY   vdkey;
VSCAN   pmscan;
ULONG   efshift;
integer rc;
...
rc = UniUntranslateKey(keyHndl, uc, vdkey, pmscan, efshift);
...

Related Functions

UniTranslateKey

Notes

UniUntranslateKey reverses the translation performed by UniTranslateKey. This is used to create a complete keyboard packet when an already translated character is entered. This is used when the input to the event is the translated character.

Typically, the Unicode character or virtual/dead key is given. If both are given, UniUntranslateKey processes the virtual/dead key before the Unicode character.

OS Version Introduced

OS/2 Warp