The DirectInputDevice.GetCapabilities method obtains the capabilities of the DirectInputDevice object.
object.GetCapabilities(caps As DIDEVCAPS)
If the method fails, an error is raised and Err.Number will be set.