The following list summarizes the joystick error codes defined in mmsystem.h:
MMSYSERR_NOERROR JOYERR_PARMS JOYERR_NOCANDO JOYERR_UNPLUGGED