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_CREATE (1.2)
◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_DOSDEVIOCTL
USHORT DosDevIOCtl(0L, pbCommand, 0x005D, 0x0004, hDevice)
PBYTE pbCommand; /* pointer to buffer with handle and pid */
HFILE hDevice; /* device handle */
The KBD_CREATE function allocates memory for a logical keyboard (KCB). This
function obtains physical memory for a new logical keyboard. The process ID
and a logical-keyboard handle passed by the caller stored in allocated
memory for use later by the KBD_SETKCB function. A logical keyboard is not
created if the handle is zero.
Parameter Description
────────────────────────────────────────────────────────────────────────────
pbCommand Points to the buffer that contains the value to use as the
logical-keyboard handle and the code-page identifier to use with
the logical keyboard.
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
the logical keyboard cannot be created.
See Also
KBD_SETKCB, KBD_DESTROY
♦