It is not a solution to your problem but I recommend to switch do DirectInput.
From MSDN:
The multimedia joystick API has been superseded by DirectInput, which has more capabilities for today's input and force-feedback devices. For more information, see the DirectX documentation.
Personally I had problems too including 15 years ago when joystick's variety was not as big as nowadays.