The CONST_DINPUTERR enumeration contains the error codes for DirectInput. All the error codes and definitions can be found in the Error Codes topic.