问题描述
我有一个pretty的通用64位驱动程序的基础上的WDK bulkusb.sys。它一直工作多年,嵌入式程序,但现在它需要工作在Vista 64。从所有的文档,我想看看经过那里似乎没有任何东西影响它,但编译它的64位环境,但是当我与AMD64构建环境编译它,我得到驱动程序不适用于该当它试图打开SYS平台的错误消息。
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.
有什么能解决这个?
更新:究竟你是试图打开SYS是什么意思?在日志中,当它试图运行失败的驱动程序(在INF不出错)的sys文件。什么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...
推荐答案
请确保您删除的驱动程序的副本
Make sure that you're removing the copy of the driver in
%WinDir%\System32\DriverStore
由于该驱动程序,您尝试安装在系统上,否则新的版本将不会被使用。有两种方法可以做到这一点:
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)找到OEM ##相当于你在%WINDIR%\ Inf文件的驱动程序的.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驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!