Prefast使用以及疑难解决

To run PREfast for Drivers, use the following procedure.

1. Open a WDK build environment window.

To open a build environment window, use the follow menu path:

Start | All Programs | Windows Driver Kits | WDK_Version | Build Enviroment | Operating System | Build Environment.

2. Navigate to the driver's sources directory.

This is the directory that contains the sources file for the driver. If you do not have a driver to test, consider running PREfast for Drivers on one of the sample code files packaged with the tool. To run PREfast for Drivers on its sample files, navigate to the /tools/pfd/samples subdirectory of the WDK.

Eg>cd D:/WinDDK/7600.16385.0/tools/pfd/samples/fail_drivers/ fail_driver1

3. Start PREfast for Drivers. To start PREfast for Drivers, at the command prompt, type prefast followed your standard build command. For example:

prefast build –cZ

但是在我机器上有错误:

D:/WinDDK/7600.16385.0/tools/pfd/samples/fail_drivers/fail_driver1>prefast build -cZ

输入错误: 没有文件扩展“.js”的脚本引擎。

 

解决方法:

修改注册表就可以了

运行-regedit

进入.js目录下,双击第一个文件,并将数值数据修改为JSFile

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值