Use DirectInputCreate or DirectInputCreateEx only for <=DirectInput7. For DirectInput8/9, use DirectInput8Create.