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_SETNLS (1.2)
◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_DOSDEVIOCTL
USHORT DosDevIOCtl(0L, pbCodePage, 0x005C, 0x0004, hDevice)
PBYTE pbCodePage; /* pointer to structure with code-page info */
HFILE hDevice; /* device handle */
The KBD_SETNLS function installs one of two possible code pages into the
device driver and updates entry number one or number two of the code-page
control block. Entry zero is the device-driver resident code page.
Parameter Description
────────────────────────────────────────────────────────────────────────────
pbCodePage Points to the CODEPAGEINFO structure that specifies the
translation table and code page to be set.
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
This function is similar to KBD_SETTRANSTABLE (0x0004,0x0050) except it
updates different entries in the code-page control block.
See Also
DosOpen, KBD_SETTRANSTABLE, KbdSetCustXt, CODEPAGEINFO
♦