From the deviceType 0, it appears that the initialization isn't working.
We've never tried, or imagined that someone would try, to use this API in a UDMF driver. We suggest Raw Input.
If you want to continue to proceed with 3DxInput, please create a log file showing your connection attempt, and post it here (do try to keep it short). You can turn on the log file in the GUI. It gets written to your %appdata%\3dconnexion\3dxware dir.