libusb-win32:自动安装驱动程序筛选器 [英] libusb-win32: Automated installation of a driver filter

查看:1095
本文介绍了libusb-win32:自动安装驱动程序筛选器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让基于libusb-w32的程序检测设备时遇到了问题. 该程序必须检测数码相机,并且我需要自动安装驱动程序筛选器,以便无需任何手动操作即可检测到任何新相机. 我已经使用install-filter i --class = {6BDD1FC6-810F-11D0-BEC7-08002BE2092F} i. e.为MTP设备安装过滤器,它似乎可以正常工作.但是今天我在干净的机器上尝试了一下,发现它实际上只是那样.尝试使用具有不同参数的安装过滤器-祝您好运. 我根本无法检测到设备的唯一方法是使用inf-wizard.exe.它安装了驱动程序,使我的程序能够检测设备,但同时也破坏了数码相机的原始Windows功能.然后,我卸载了libusb驱动程序,重新安装了原始Windows驱动程序,执行了安装过滤器---class = {6BDD1FC6-810F-11D0-BEC7-08002BE2092F}-该程序仍然能够检测到设备. 问题是:如何使该过程自动化,以便无需用户进行任何工作就能检测到任何新相机?

I've faced a problem getting my libusb-w32 based program to detect devices. The program has to detect digital cameras, and I need to automatically install driver filter for any new camera to be detected without any manual work.  I've used install-filter i --class={6BDD1FC6-810F-11D0-BEC7-08002BE2092F} , i. e. installing filter for MTP devices, and it seemed to work. But today I tried it on a clean machine and found out it actually only seemed that way. Tried install-filter with different parameters - no luck. The only way I was able to detect devices at all was to use the inf-wizard.exe. It installed the driver, enabling my program to detect devices, but also disrupting the original Windows functionality for digital cameras. Then, I've uninstalled the libusb driver, installed the original windows driver back, executed install-filter i --class={6BDD1FC6-810F-11D0-BEC7-08002BE2092F}  - and the program is still able to detect devices. The question is: how to automate the process so that any new camera is detected without any work required from a user?

更新: 我会简化这个问题.看来,当我使用inf-wizard.exe安装驱动程序时,除了安装驱动程序本身外,它还会执行其他操作.我需要确切地知道什么.

Update: I'll shorten the question. It seems that when I install a driver with inf-wizard.exe, it does something besides installing the driver itself. I need to know what, exactly.

谢谢.

推荐答案

如果有人遇到类似的问题-答案在这里:

In case someone has similar problem - the answer is here:

https://sourceforge.net/mailarchive/forum.php?thread_name=749401313049992%40web78.yandex.ru&forum_name=libusb-win32-devel

这篇关于libusb-win32:自动安装驱动程序筛选器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆