有关如何将驱动程序加载到Vista或Win7的问题 [英] Question about how to load a driver to vista or win7

查看:157
本文介绍了有关如何将驱动程序加载到Vista或Win7的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

我只是有一个关于Windows驱动程序开发的问题.我完成了vista,win7(32位和64位)的Windows驱动程序,但是只有使用管理员才能正确加载驱动程序,使用普通帐户,Windows会将其阻止到c:\ windows \ system32 \ driver文件夹,并且无法添加要注册的项目.

首先,我使用rundll32.exe setupapi,InstallHinfSection DefaultInstall 132"* .inf"来加载驱动程序,但是错了!然后我将ShellExecuteEx用作rundll32.exe的运行方式"来加载驱动程序,再次出错!

我只是想知道还有没有其他方法可以使用普通帐户成功加载驱动程序,怎么办?非常感谢!鞠躬!

PS.使用管理程序,驱动程序可以加载并成功运行.

再次感谢!

Hey guys.

I just have a question about windows driver development. I completed a windows driver for vista, win7(32bits & 64bits), but only use administrator can load the driver correct, using normal account, windows will block it to c:\windows\system32\driver folder, and can''t add item to regedit.

At first, I use rundll32.exe setupapi, InstallHinfSection DefaultInstall 132 "*.inf" to load the driver, but wrong! Then I use ShellExecuteEx just as "run as" the rundll32.exe to load the driver, wrong again!

I just wonder is there another way to load the driver successful using normal account, and how? Thanks very much! Bow!

PS. use adminitrator the driver can load and work successful.

Thanks again!

推荐答案

您无法在Vista后操作系统中加载驱动程序,如果未签名,则Windows会阻止它.

唯一的两种方法是:

1.在测试模式下启动操作系统.
2.使用WinDbg.

(注意:我不确定这些替代方法是否适用于64位版本的VISTA或Windows 7)


要以测试模式启动操作系统,请以管理员身份启动CMD实例并执行以下命令:

bcdedit.exe -set loadoptions DDISABLE_INTEGRITY_CHECKS
bcdedit.exe -set TESTSIGNING ON

要禁用测试模式,请执行以下命令:

bcdedit.exe -set loadoptions EENABLE_INTEGRITY_CHECKS
bcdedit.exe -set TESTSIGNING OFF

(注意:如果禁用测试模式,由于未签名,驱动程序将无法运行)

D,库尔特.
you cannot load the driver in post vista Operating systems if it isn''t signed windows will block it.

The only two ways to do this are:

1. Start the OS In test mode.
2. Use WinDbg.

(NOTE: I AM NOT SURE IF THESE WORKAROUNDS WORK WITH 64 bit versions of VISTA or Windows 7)


To start the OS in test mode start a CMD instance as an administrator and execute the following commands:

bcdedit.exe -set loadoptions DDISABLE_INTEGRITY_CHECKS
bcdedit.exe -set TESTSIGNING ON

To disable Test Mode execute the following commands:

bcdedit.exe -set loadoptions EENABLE_INTEGRITY_CHECKS
bcdedit.exe -set TESTSIGNING OFF

(NOTE: if you disable test mode your driver wont run since it isn''t signed)

D, Kurt.


这篇关于有关如何将驱动程序加载到Vista或Win7的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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