This is part of Family API which allow to create dual-os version of program runs under OS/2 and DOS
Note: This is legacy API call. It is recommended to use 32-bit equivalent
This call registers a keyboard subsystem within a session.
KbdRegister (ModuleName, EntryPoint, FunctionMask)
Bit | Description |
---|---|
31-15 | Reserved, must be set to zero |
14 | KbdGetHWId |
13 | KbdSetCustXt |
12 | KbdXlate |
11 | KbdSetCp |
10 | KbdGetCp |
9 | KbdFreeFocus |
8 | KbdGetFocus |
7 | KbdClose |
6 | KbdOpen |
5 | KbdStringIn |
4 | KbdSetStatus |
3 | KbdGetStatus |
2 | KbdFlushBuffer |
1 | KbdPeek |
0 | KbdCharIn |
rc (USHORT) - return:Return code descriptions are:
There can be only one KbdRegister call outstanding for each session without an intervening KbdDeRegister. KbdDeRegister must be issued by the same process that issued the KbdRegister.
#define INCL_KBD USHORT rc = KbdRegister(ModuleName, EntryPoint, FunctionMask); PSZ ModuleName; /* Module name */ PSZ EntryPoint; /* Entry point name */ ULONG FunctionMask; /* Function mask */ USHORT rc; /* return code */
EXTRN KbdRegister:FAR INCL_KBD EQU 1 PUSH@ ASCIIZ ModuleName ;Module name PUSH@ ASCIIZ EntryPoint ;Entry point name PUSH DWORD FunctionMask ;Function mask CALL KbdRegister Returns WORD