Better XInput detection code for DirectInput device enumeration. This code is way faster than the Wbem code, and less ugly.