This call returns the number of buttons supported on the installed mouse driver.
MouGetNumButtons
NumberOfButtons (PUSHORT) - output
Value
385