Returns the number of buttons supported on the installed mouse device driver.
#define INCL_MOU #include <os2.h> PULONG NumberOfButtons; /* Number of mouse buttons. */ HMOU DeviceHandle; /* Mouse device handle. */ APIRET rc; /* Return code. */ rc = MouGetNumButtons(NumberOfButtons, DeviceHandle);