en:ibm:prcp:kbd:reg

Differences

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

Link to this comparison view

en:ibm:prcp:kbd:reg [2014/05/13 14:39] – created valeriusen:ibm:prcp:kbd:reg [2016/09/15 02:49] (current) valerius
Line 1: Line 1:
 ==== KbdRegister ==== ==== KbdRegister ====
  
-**Bindings**: +**Bindings**: [[reg#C bindings|C]][[reg#MASM bindings|MASM]]
- +
-C: +
-<code c> +
-#define INCL_KBD +
- +
-USHORT  rc = KbdRegister(ModuleNameEntryPoint, FunctionMask); +
- +
-PSZ              ModuleName;    /* Module name */ +
-PSZ              EntryPoint;    /* Entry point name */ +
-ULONG            FunctionMask;  /* Function mask */ +
- +
-USHORT           rc;            /* return code */ +
-</code> +
- +
-MASM+
-<code asm> +
-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 +
-</code>+
  
 This call registers a keyboard subsystem within a session.  This call registers a keyboard subsystem within a session. 
Line 73: Line 47:
  
 There can be only one //KbdRegister// call outstanding for each session without an intervening KbdDeRegister. //[[en:ibm:prcp:kbd:dereg|KbdDeRegister]]// must be issued by the same process that issued the //KbdRegister// There can be only one //KbdRegister// call outstanding for each session without an intervening KbdDeRegister. //[[en:ibm:prcp:kbd:dereg|KbdDeRegister]]// must be issued by the same process that issued the //KbdRegister//
 +
 +=== C bindings ===
 +
 +<code c>
 +#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 */
 +</code>
 +
 +=== MASM bindings ===
 +
 +<code asm>
 +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
 +</code>