passthru驱动安装

来源:互联网 发布:js设置按钮禁用 编辑:程序博客网 时间:2024/06/05 14:40

     passthru作为学习NDIS的经典例程,起着非常重要的作用,下面结合在网上查到的相关资料对其驱动安装进行介绍。

     原始的解决方法来自于此贴http://topic.csdn.net/u/20110218/16/90f347c9-62ff-43ab-97d8-eb87b12fab01.html,在此表示感谢。

 解决方法:(来自于WDK中的帮助文档)

Installation General

Passthru is installed as a service (called “Passthru Driver” in the supplied INFs/notification object).

Two INF files are needed rather than one because Passthru is installed both as a protocol and a miniport.

End User

1、Prepare an installation directory that contains these files: netsf.inf, netsf_m.inf, and passthru.sys. 
2、In Control Panel, open Network Connections. 
3、Right-click the relevant Local Area Connection icon and click Properties. 
4、Click Install, click Service, click Add, and then click Have Disk. 
5、Browse to the drive and directory that contain the files from step 1, and then click OK. 
6、Select “Passthru Driver” and click OK. This action should install the Passthru driver. 
7、Click OK or Yes each time the system prompts with a warning regarding installation of unsigned files. This step is necessary because binaries that are generated through the WDK build environment are not signed. 


Alternate Installation

You can install this sample programmatically by using the INetCfg APIs.

要注意要把netsf.inf, netsf_m.inf, passthru.sys这三个文件放到一起!

     注意和一般的服务安装不太一样,通过网络连接安装上去,终于在列表中看到了passthru的名字。