en:ibm:prcp:mou:getnumbtns

Differences

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

Link to this comparison view

en:ibm:prcp:mou:getnumbtns [2016/02/04 04:57] – created valeriusen:ibm:prcp:mou:getnumbtns [2016/09/15 03:48] (current) valerius
Line 1: Line 1:
 ==== MouGetNumButtons ==== ==== MouGetNumButtons ====
  
-**Bindings**: C, MASM +**Bindings**: [[getnumbtns#bindings|C]][[getnumbtns#MASM bindings|MASM]]
  
 This call returns the number of buttons supported on the installed mouse driver.  This call returns the number of buttons supported on the installed mouse driver. 
Line 25: Line 25:
 |501 |ERROR_MOUSE_NO_CONSOLE | |501 |ERROR_MOUSE_NO_CONSOLE |
 |505 |ERROR_MOU_EXTENDED_SG | |505 |ERROR_MOU_EXTENDED_SG |
 +
 +=== C bindings ===
 +
 +<code c>
 +#define INCL_MOU
 +
 +USHORT  rc = MouGetNumButtons(NumberOfButtons, DeviceHandle);
 +
 +PUSHORT          NumberOfButtons;  /* Number of mouse buttons */
 +HMOU             DeviceHandle;     /* Mouse device handle */
 +
 +USHORT           rc;               /* return code */
 +</code>
 +
 +=== MASM bindings ===
 +
 +<code asm>
 +EXTRN  MouGetNumButtons:FAR
 +INCL_MOU            EQU 1
 +
 +PUSH@  WORD    NumberOfButtons ;Number of mouse buttons
 +PUSH   WORD    DeviceHandle    ;Mouse device handle
 +CALL   MouGetNumButtons
 +
 +Return WORD
 +</code>