Errors are represented by negative values and cannot be combined. This table lists the failures that can be returned by all DirectInput functions. For a list of the error codes each function can return, see the individual function descriptions.
The joystick driver cannot update the device information from the registry.
JOYERR_NOERROR
The request completed successfully.
One or more registry joystick entries contain invalid data.
The specified joystick is not connected to the computer.
The specified joystick identifier is invalid.
An invalid parameter was passed.
The joystick driver is not present.