en:ibm:prcp:kbd:open

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:ibm:prcp:kbd:open [2014/05/16 17:38] – created valeriusen:ibm:prcp:kbd:open [2016/09/15 02:44] (current) valerius
Line 1: Line 1:
 ==== KbdOpen ==== ==== KbdOpen ====
  
-**Bindings**: +**Bindings**: [[open#bindings|C]], [[open#MASM bindings|MASM]]
- +
-**C**: +
-<code c> +
-#define INCL_KBD +
- +
-USHORT  rc = KbdOpen(KbdHandle); +
- +
-PHKBD            KbdHandle;     /* Keyboard handle */ +
- +
-USHORT           rc;            /* return code */ +
-</code> +
- +
-**MASM**: +
-<code asm> +
-EXTRN  KbdOpen:FAR +
-INCL_KBD            EQU 1 +
- +
-PUSH@  WORD    KbdHandle     ;Keyboard handle +
-CALL   KbdOpen +
- +
-Returns WORD +
-</code>+
  
 This call creates a new logical keyboard.  This call creates a new logical keyboard. 
Line 50: Line 28:
 //KbdOpen// get yet another logical keyboard handle  //KbdOpen// get yet another logical keyboard handle 
 //[[freefocus|KbdFreeFocus]]// give up the focus on handle 0.  //[[freefocus|KbdFreeFocus]]// give up the focus on handle 0. 
 +
 +=== C bindings ===
 +
 +<code c>
 +#define INCL_KBD
 +
 +USHORT  rc = KbdOpen(KbdHandle);
 +
 +PHKBD            KbdHandle;     /* Keyboard handle */
 +
 +USHORT           rc;            /* return code */
 +</code>
 +
 +=== MASM bindings ===
 +
 +<code asm>
 +EXTRN  KbdOpen:FAR
 +INCL_KBD            EQU 1
 +
 +PUSH@  WORD    KbdHandle     ;Keyboard handle
 +CALL   KbdOpen
 +
 +Returns WORD
 +</code>
 +