64 位 Windows 上的 USB 驱动程序 [英] Usb Driver on 64bit Windows

查看:46
本文介绍了64 位 Windows 上的 USB 驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个基于 WDK 中的 bulkusb.sys 的非常通用的 64 位驱动程序.它已经与嵌入式程序一起工作多年,但现在需要在 Vista 64 上工作.从我尝试查看的所有文档中,似乎没有任何影响它,除了为 64 位环境编译它,但是当我使用 AMD64 构建环境编译它时,我得到驱动程序不适合这个平台"尝试打开系统时的错误消息.

I have a pretty generic 64bit driver based on bulkusb.sys in WDK. It's been working for years with an embedded program, but now it is needed to work on Vista 64. From all the documentation I've tried to look through there doesn't seem to be anything affecting it, except compiling it for the 64bit environment, and yet when I compile it with the AMD64 build environment, I get "driver not intended for this platform" error message when it's trying to open the sys.

有什么办法可以解决这个问题?

What could be the solution for this?

更新:试图打开系统"究竟是什么意思?在日志中,当它尝试运行驱动程序的 sys 文件时(不是 inf 中的错误),它失败了.您使用的是什么 WDK 版本?7600.16385.0

Update: What exactly do you mean by "trying to open the sys"? In the log, when it tries to run the sys file of the driver(not error in the inf) it fails. What WDK version are you using? 7600.16385.0

是否在同一台 Vista x64 机器上构建和部署?不,我在 32 位 xp 上构建,但我不明白这有什么关系,因为我使用了正确的构建环境.

Are both building and trying to deploy on the same Vista x64 machine? No, I'm building on 32bit xp, but I don't see how it matters, since I use the correct build environment.

您的驱动程序是否使用交叉签名证书进行签名?不,我试过启用未签名的驱动程序,但没有帮助,但我也不确定这个主题会发生什么,如果你也可以给我一些关于这方面的信息,它会不客气.

Is your driver signed with a cross-signed certificate? No, I've tried enabling unsigned drivers, and it didn't help, but I'm also not sure what will be going on with this subject at all, and if you can give me some info on that as well, it will be welcome.

是否选择了正确的构建环境 (chk/fre/amd64/win2k)?我用过 chk-vista-amd64.因为它是用于 vista 64 位...

Is the right build environment chosen (chk/fre/amd64/win2k)? I've used chk-vista-amd64. Since it's for vista 64bit...

推荐答案

确保您正在删除

%WinDir%System32DriverStore

因为否则将不会使用您尝试在系统上安装的较新版本的驱动程序.有两种方法可以做到这一点:

Because otherwise newer versions of the driver that you try to install on the system won't be used. There are 2 ways to do this:

1) 插入您的设备并安装不正确的驱动程序,并使用设备管理器删除,但删除时使用鼠标菜单而不是删除键,并选中删除驱动程序"框

1) Plug-in your device and install the incorrect driver, and remove using Device manager, but when removing, use the mouse-menu and not the delete key, and check the box about "removing the driver"

2) 在 %WinDir%Inf 中找到与您的驱动程序对应的 OEM##.inf 文件.使用提升的命令行窗口(即以管理员身份运行)使用

2) Locate the OEM##.inf file corresponding to your driver in %WinDir%Inf. using an elevated command line windows (i.e. Run as Admin) use

pnputil -d oem##.inf

现在您可以安装新版本的驱动程序了.

Now you can install the new version of your driver.

这篇关于64 位 Windows 上的 USB 驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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