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_DESTROY (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_DOSDEVIOCTL
 
USHORT DosDevIOCtl(0L, pbCommand, 0x005E, 0x0004, hDevice)
PBYTE pbCommand;    /* pointer to buffer with handle and pid */
HFILE hDevice;      /* device handle                         */
 
The KBD_DESTROY function frees memory for a logical keyboard (KCB). This
function searches for the existing logical keyboard that has the specified
logical-keyboard handle and process ID combination and frees the physical
memory associated with the logical keyboard. No action is taken if the
specified handle is zero.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
pbCommand  Points to the buffer that contains the logical-keyboard handle.
 
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 identified by the given handle cannot be found.
 
See Also
 
KBD_CREATE