Windows 10会在此C代码中破坏simplewdi设备驱动程序吗?

时间:2019-09-17 21:35:50

标签: c windows windows-10 driver usblib

我们有一个通过USB插入的相机,用于通过Windows 7连接到使用Twain驱动程序拍照的程序。相机显示并安装在Windows 10中,在硬件管理器的USB接口下列出。该软件旨在从计算机上拍摄照片,并将其传送回Twain界面上监听的某些软件。

Canon PowerShot (PS) SX150IS

inPhoto ID PS 4.3.1 (About screen)

其运行的框已升级到Windows 10,现在驱动程序不起作用。我们不确定升级是否引起了问题,因为在Windows 7的第二次手动重新引导期间,它正在执行相同的操作...当您在运行该程序的程序中选择摄像机时,说Initializing Camera,然后在错误屏幕上冻结;您甚至都看不到出了什么问题的细节。

Dialog box which reads: The operation has timed out waiting for a response from the camera.  Please, check the camera is connected and working properly.  You can try to reconnect application to camera or disconnect from.  If this error repeats, please, send error report.

运行相机的软件可以安装另一种类型的驱动程序或接口或名为simplewdi的东西,而该文件似乎在github中列出了其源代码(和程序参数)。

inPhotoID PS Start Menu items...inPhoto ID PS, PS Module Card Setup, PS Remote Control Driver

点击PS Remote Control Driver后,运行Install this driver software anyway卡住了,只是停留了一段时间,但是在我下一次关闭防病毒功能的尝试中却消失了。

Windows Security Dialog: Windows can't verify the publisher of this driver software

运行相机的软件可以安装其他类型的驱动程序或接口或名为simplewdi的某种方式,该驱动程序或接口的源代码(和程序参数)似乎列在github中。

这是我接下来尝试的方法:

  1. 关闭Sophos 4小时。 (我应该尝试关闭Windows Defender吗?)

  2. 确保InPhoto ID DS可执行文件处于“ Windows 7”兼容模式。

  3. 确保simplewdi.exe程序(安装驱动程序)处于“ Windows 7”兼容模式。

  4. 确保通过运行x86_installer.exe提取的simplewdi.exe在“ Windows 7”的兼容模式下。

  5. 使用PS Remote Control Driver快捷方式中指定的命令,通过管理命令提示符运行驱动程序以进行安装。

从命令中收到以下输出,该输出比我们之前的输出要多:

C:\Program Files\inPhoto ID PS>wdi-simple -n "PS Camera Remote Control" -m "IDPhotoCapture" -v 0x04A9 -p 0x3041 -t 0
Extracting Driver Files...
  Success
Installing driver(s)...
  USB\VID_04A9&PID_3041&REV_002: Success

(在上述过程中的某个时候,我不得不从对话框中接受驱动程序的安装)

还注意到其中包含有关USBLib from GNU Copywrite 2010的信息。查了一下,网站指出它与Windows 10兼容。

摄像机现在重新出现在InPhoto ID DS中,但再次卡在Initializing Camera屏幕上。

这就是(至少某些版本的源代码)  因为帮助文本匹配...

source vs. command help text, they match...

我真的对Windows中的c和驱动程序不太了解。但是,我了解到,成功消息中出现的USB\VID_04A9&PID_3041&REV_002字符串是经过“摄像机”下拉框中的项目之后在设备属性中的。

如果这个问题不属于这里,我也深表歉意。如果您认为它不符合Stackoverflow问题的条件,请随时将其发送给Superuser。但是,这里涉及c设备驱动程序代码,如果您了解有关在Windows中使用c编写设备驱动程序的知识,则可以阅读源代码。

0 个答案:

没有答案