Keyboard Function Calls

This section reflects the Keyboard API interface of OS/2 only.

For information regarding the keyboard IOCTL interface and keyboard monitor refer to IBM Operating System/2 Version 1.2 I/O Subsystems And Device Support Volume 1.

Notes:

Calls marked xPM are not supported by Presentation Manager, and must not be used by Presentation Manager applications. An error code is returned if any of these calls are issued.

Calls marked xWPM are not windowable and are not supported by Presentation Manager. They can be used in OS/2 mode.

Calls marked FAPI are present in the Family API.

FUNCTION CALL	ICON	Description
KbdCharIn	FAPI xPM	This call returns a character data record from the keyboard.
KbdClose	xPM	This call closes the existing logical keyboard identified by the keyboard handle.
KbdDeRegister	xWPM	This call deregisters a keyboard subsystem previously registered within a session.
KbdFlushBuffer	FAPI xPM	This call clears the keystroke buffer.
KbdFreeFocus	xPM	This call frees the logical-to-physical keyboard bond created by KbdGetFocus
KbdGetCp	xPM	This call allows a process to query the code page being used to translate scan codes to ASCII characters.
KbdGetFocus	xPM	This call binds the logical keyboard to the physical keyboard.
KbdGetStatus	FAPI xPM
KbdOpen	xPM
KbdPeek	FAPI xPM
KbdRegister	xWPM	This call registers a keyboard subsystem within a session.
KbdSetCp	xPM
KbdSetCustXt	xPM
KbdSetFgnd	xPM
KbdSetStatus	FAPI xPM
KbdStringIn	FAPI xPM
KbdSynch	xWPM
KbdXlate	xPM