en:ibm:prcp:mou:register

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
en:ibm:prcp:mou:register [2016/02/04 04:06] valeriusen:ibm:prcp:mou:register [2016/09/15 04:19] (current) valerius
Line 1: Line 1:
 ==== MouRegister ==== ==== MouRegister ====
  
-**Bindings**: C, MASM +**Bindings**: [[register#bindings|C]][[register#MASM bindings|MASM]]
  
 This call registers a mouse subsystem within a session.  This call registers a mouse subsystem within a session. 
Line 111: Line 111:
  
 A registered mouse sybsystem must leave the stack, on exit, in the exact state it was received.  A registered mouse sybsystem must leave the stack, on exit, in the exact state it was received. 
 +
 +=== C bindings ===
 +
 +<code c>
 +#define INCL_MOU
 +
 +USHORT  rc = MouRegister(ModuleName, EntryName, Mask);
 +
 +PSZ              ModuleName;    /* Module Name */
 +PSZ              EntryName;     /* Entry Name */
 +ULONG            Mask;          /* Function Mask */
 +
 +USHORT           rc;            /* return code */
 +</code>
 +
 +=== MASM bindings ===
 +
 +<code asm>
 +EXTRN   MouRegister:FAR
 +INCL_MOU            EQU 1
 +
 +PUSH@  ASCIIZ  ModuleName    ;Module Name
 +PUSH@  ASCIIZ  EntryName     ;Entry Name
 +PUSH   DWORD   Mask          ;Function Mask
 +CALL   MouRegister
 +
 +Returns WORD
 +</code>