ioctl12.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
KBD_XLATESCAN (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_DOSDEVIOCTL
 
USHORT DosDevIOCtl(pkbxl, pidCodePage, 0x0079, 0x0004, hDevice)
PKBDXLATE pkbxl;      /* pointer to structure for scan code   */
PBYTE pidCodePage;    /* pointer to code page for translation */
HFILE hDevice;        /* device handle                        */
 
The KBD_XLATESCAN function translates a scan code in a character data record
to an ASCII character.
 
Parameter    Description
────────────────────────────────────────────────────────────────────────────
 
pkbxl        Points to the KBDTRANS structure that contains the scan code to
             translate. It also receives the character value when the
             function returns.
pidCodePage  Points to a code-page identifier that specifies which code page
             to use for the translation. The code-page identifier can be one
             of the following values:
 
             Number  Code page
             ───────────────────────────────────────────────────────────────
             437     United States
 
             850     Multilingual
 
             860     Portuguese
 
             863     French-Canadian
 
             865     Nordic
 
hDevice      Identifies the keyboard that receives the device-control
             function. The handle must have been created previously by using
             the DosOpen function.
 
Return Value
 
The return value is zero if the function is successful or an error value if
an error occurs.
 
Comments
 
You may specify a code page to use for translation. Otherwise, the code page
of the active keyboard is used. On entry, the KBDTRANS structure specifies
the code page to use for translation.
 
See Also
 
KbdXlate