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