The JDD_GETDEVCAPS message is sent to get joystick device capability information.
If JDD_GETDEVCAPS succeeds, it returns MMSYSERR_NOERROR. Otherwise, it returns JOYERR_PARMS.
Compare the structure size value passed to lParam2 with the size of the JOYCAPS structure with which the driver was compiled. If lParam2 is larger than the expected structure size, fill the remaining with zeros.
If lParam2 is zero, return MMSYSERR_NOERROR without writing anything to the location specified by lParam1.